polyapi-python 0.3.18.dev4__tar.gz → 0.3.18.dev5__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.3.18.dev4 → polyapi_python-0.3.18.dev5}/PKG-INFO +2 -2
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi_python.egg-info/PKG-INFO +2 -2
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi_python.egg-info/requires.txt +1 -1
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/pyproject.toml +2 -2
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_poly_custom.py +18 -1
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/LICENSE +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/README.md +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/__init__.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/__main__.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/api.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/auth.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/cli.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/cli_constants.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/client.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/config.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/constants.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/deployables.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/error_handler.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/exceptions.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/execute.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/function_cli.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/generate.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/http_client.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/parser.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/poly_schemas.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/poly_tables.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/prepare.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/py.typed +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/rendered_spec.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/schema.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/server.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/sync.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/typedefs.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/utils.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/variables.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi/webhook.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi_python.egg-info/SOURCES.txt +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi_python.egg-info/dependency_links.txt +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi_python.egg-info/top_level.txt +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/setup.cfg +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_api.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_async_proof.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_auth.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_deployables.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_generate.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_parser.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_poly_schemas.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_rendered_spec.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_schema.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_server.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_tabi.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_utils.py +0 -0
- {polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/tests/test_variables.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: polyapi-python
|
|
3
|
-
Version: 0.3.18.
|
|
3
|
+
Version: 0.3.18.dev5
|
|
4
4
|
Summary: The Python Client for PolyAPI, the IPaaS by Developers for Developers
|
|
5
5
|
Author-email: PolyAPI <support@polyapi.io>
|
|
6
6
|
License: MIT License
|
|
@@ -32,7 +32,7 @@ Requires-Dist: requests==2.32.3
|
|
|
32
32
|
Requires-Dist: typing_extensions==4.12.2
|
|
33
33
|
Requires-Dist: jsonschema-gentypes==2.10.0
|
|
34
34
|
Requires-Dist: pydantic==2.8.0
|
|
35
|
-
Requires-Dist: stdlib_list==0.
|
|
35
|
+
Requires-Dist: stdlib_list==0.11.1
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: polyapi-python
|
|
3
|
-
Version: 0.3.18.
|
|
3
|
+
Version: 0.3.18.dev5
|
|
4
4
|
Summary: The Python Client for PolyAPI, the IPaaS by Developers for Developers
|
|
5
5
|
Author-email: PolyAPI <support@polyapi.io>
|
|
6
6
|
License: MIT License
|
|
@@ -32,7 +32,7 @@ Requires-Dist: requests==2.32.3
|
|
|
32
32
|
Requires-Dist: typing_extensions==4.12.2
|
|
33
33
|
Requires-Dist: jsonschema-gentypes==2.10.0
|
|
34
34
|
Requires-Dist: pydantic==2.8.0
|
|
35
|
-
Requires-Dist: stdlib_list==0.
|
|
35
|
+
Requires-Dist: stdlib_list==0.11.1
|
|
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
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "polyapi-python"
|
|
7
|
-
version = "0.3.18.
|
|
7
|
+
version = "0.3.18.dev5"
|
|
8
8
|
description = "The Python Client for PolyAPI, the IPaaS by Developers for Developers"
|
|
9
9
|
authors = [{ name = "PolyAPI", email = "support@polyapi.io" }]
|
|
10
10
|
dependencies = [
|
|
@@ -12,7 +12,7 @@ dependencies = [
|
|
|
12
12
|
"typing_extensions==4.12.2",
|
|
13
13
|
"jsonschema-gentypes==2.10.0",
|
|
14
14
|
"pydantic==2.8.0",
|
|
15
|
-
"stdlib_list==0.
|
|
15
|
+
"stdlib_list==0.11.1",
|
|
16
16
|
"colorama==0.4.4",
|
|
17
17
|
"python-socketio[asyncio_client]==5.11.1",
|
|
18
18
|
"truststore==0.8.0",
|
|
@@ -7,7 +7,16 @@ from concurrent.futures import ThreadPoolExecutor
|
|
|
7
7
|
def _reload_polyapi():
|
|
8
8
|
sys.modules.pop("polyapi", None)
|
|
9
9
|
sys.modules.pop("polyapi.cli", None)
|
|
10
|
-
|
|
10
|
+
polyapi = importlib.import_module("polyapi")
|
|
11
|
+
|
|
12
|
+
for module_name, module in list(sys.modules.items()):
|
|
13
|
+
if not module_name.startswith("polyapi.") or module_name == "polyapi.cli":
|
|
14
|
+
continue
|
|
15
|
+
submodule_name = module_name.removeprefix("polyapi.")
|
|
16
|
+
if "." not in submodule_name:
|
|
17
|
+
setattr(polyapi, submodule_name, module)
|
|
18
|
+
|
|
19
|
+
return polyapi
|
|
11
20
|
|
|
12
21
|
|
|
13
22
|
def test_import_polyapi_does_not_import_cli():
|
|
@@ -24,6 +33,14 @@ def test_cli_constants_shared_between_runtime_and_cli():
|
|
|
24
33
|
assert tuple(cli_module.CLI_COMMANDS) == cli_constants.CLI_COMMANDS
|
|
25
34
|
|
|
26
35
|
|
|
36
|
+
def test_reload_preserves_existing_submodule_bindings():
|
|
37
|
+
rendered_spec = importlib.import_module("polyapi.rendered_spec")
|
|
38
|
+
|
|
39
|
+
polyapi = _reload_polyapi()
|
|
40
|
+
|
|
41
|
+
assert polyapi.rendered_spec is rendered_spec
|
|
42
|
+
|
|
43
|
+
|
|
27
44
|
def test_poly_custom_nested_scopes_restore_previous_state():
|
|
28
45
|
polyapi = _reload_polyapi()
|
|
29
46
|
poly_custom = polyapi.polyCustom
|
|
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
|
|
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.3.18.dev4 → polyapi_python-0.3.18.dev5}/polyapi_python.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{polyapi_python-0.3.18.dev4 → polyapi_python-0.3.18.dev5}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|