polyapi-python 0.2.4.dev1__tar.gz → 0.2.4.dev3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {polyapi_python-0.2.4.dev1/polyapi_python.egg-info → polyapi_python-0.2.4.dev3}/PKG-INFO +1 -2
- polyapi_python-0.2.4.dev3/polyapi/poly_custom.py +6 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/server.py +4 -9
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3/polyapi_python.egg-info}/PKG-INFO +1 -2
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi_python.egg-info/SOURCES.txt +1 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi_python.egg-info/requires.txt +0 -1
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/pyproject.toml +1 -2
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/LICENSE +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/README.md +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/__init__.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/__main__.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/api.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/auth.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/cli.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/client.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/config.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/constants.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/error_handler.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/exceptions.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/execute.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/function_cli.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/generate.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/py.typed +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/schema.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/typedefs.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/utils.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/variables.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi/webhook.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi_python.egg-info/dependency_links.txt +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi_python.egg-info/top_level.txt +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/setup.cfg +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/tests/test_api.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/tests/test_auth.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/tests/test_function_cli.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/tests/test_server.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/tests/test_utils.py +0 -0
- {polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/tests/test_variables.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: polyapi-python
|
|
3
|
-
Version: 0.2.4.
|
|
3
|
+
Version: 0.2.4.dev3
|
|
4
4
|
Summary: The PolyAPI Python Client
|
|
5
5
|
Author-email: Dan Fellin <dan@polyapi.io>
|
|
6
6
|
License: MIT License
|
|
@@ -36,7 +36,6 @@ Requires-Dist: stdlib_list==0.10.0
|
|
|
36
36
|
Requires-Dist: colorama==0.4.4
|
|
37
37
|
Requires-Dist: python-socketio[asyncio_client]==5.11.1
|
|
38
38
|
Requires-Dist: truststore==0.8.0
|
|
39
|
-
Requires-Dist: pyjwt==2.3.0
|
|
40
39
|
|
|
41
40
|
# PolyAPI Python Library
|
|
42
41
|
|
|
@@ -18,7 +18,10 @@ def {function_name}(
|
|
|
18
18
|
Function ID: {function_id}
|
|
19
19
|
\"""
|
|
20
20
|
resp = execute("{function_type}", "{function_id}", {data})
|
|
21
|
-
|
|
21
|
+
try:
|
|
22
|
+
return {return_action}
|
|
23
|
+
except:
|
|
24
|
+
return resp.text
|
|
22
25
|
"""
|
|
23
26
|
|
|
24
27
|
|
|
@@ -54,14 +57,6 @@ def render_server_function(
|
|
|
54
57
|
def _get_server_return_action(return_type_name: str) -> str:
|
|
55
58
|
if return_type_name == "str":
|
|
56
59
|
return_action = "resp.text"
|
|
57
|
-
elif return_type_name == "Any":
|
|
58
|
-
return_action = "resp.text"
|
|
59
|
-
elif return_type_name == "int":
|
|
60
|
-
return_action = "int(resp.text.replace('(int) ', ''))"
|
|
61
|
-
elif return_type_name == "float":
|
|
62
|
-
return_action = "float(resp.text.replace('(float) ', ''))"
|
|
63
|
-
elif return_type_name == "bool":
|
|
64
|
-
return_action = "False if resp.text == 'False' else True"
|
|
65
60
|
else:
|
|
66
61
|
return_action = "resp.json()"
|
|
67
62
|
return return_action
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: polyapi-python
|
|
3
|
-
Version: 0.2.4.
|
|
3
|
+
Version: 0.2.4.dev3
|
|
4
4
|
Summary: The PolyAPI Python Client
|
|
5
5
|
Author-email: Dan Fellin <dan@polyapi.io>
|
|
6
6
|
License: MIT License
|
|
@@ -36,7 +36,6 @@ Requires-Dist: stdlib_list==0.10.0
|
|
|
36
36
|
Requires-Dist: colorama==0.4.4
|
|
37
37
|
Requires-Dist: python-socketio[asyncio_client]==5.11.1
|
|
38
38
|
Requires-Dist: truststore==0.8.0
|
|
39
|
-
Requires-Dist: pyjwt==2.3.0
|
|
40
39
|
|
|
41
40
|
# PolyAPI Python Library
|
|
42
41
|
|
|
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.2", "wheel"]
|
|
|
3
3
|
|
|
4
4
|
[project]
|
|
5
5
|
name = "polyapi-python"
|
|
6
|
-
version = "0.2.4.
|
|
6
|
+
version = "0.2.4.dev3"
|
|
7
7
|
description = "The PolyAPI Python Client"
|
|
8
8
|
authors = [{ name = "Dan Fellin", email = "dan@polyapi.io" }]
|
|
9
9
|
dependencies = [
|
|
@@ -15,7 +15,6 @@ dependencies = [
|
|
|
15
15
|
"colorama==0.4.4",
|
|
16
16
|
"python-socketio[asyncio_client]==5.11.1",
|
|
17
17
|
"truststore==0.8.0",
|
|
18
|
-
"pyjwt==2.3.0",
|
|
19
18
|
]
|
|
20
19
|
readme = "README.md"
|
|
21
20
|
license = { file = "LICENSE" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{polyapi_python-0.2.4.dev1 → polyapi_python-0.2.4.dev3}/polyapi_python.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|