vantage-python 0.3.3__tar.gz → 0.4.0__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.
- {vantage_python-0.3.3 → vantage_python-0.4.0}/PKG-INFO +1 -1
- {vantage_python-0.3.3 → vantage_python-0.4.0}/autogen.py +4 -4
- {vantage_python-0.3.3 → vantage_python-0.4.0}/pyproject.toml +1 -1
- {vantage_python-0.3.3 → vantage_python-0.4.0}/src/vantage/_async/client.py +196 -185
- {vantage_python-0.3.3 → vantage_python-0.4.0}/src/vantage/_base.py +1 -1
- {vantage_python-0.3.3 → vantage_python-0.4.0}/src/vantage/_sync/client.py +196 -185
- {vantage_python-0.3.3 → vantage_python-0.4.0}/src/vantage/_types.py +1 -1
- {vantage_python-0.3.3 → vantage_python-0.4.0}/.github/workflows/pypi-publish.yml +0 -0
- {vantage_python-0.3.3 → vantage_python-0.4.0}/.github/workflows/test.yml +0 -0
- {vantage_python-0.3.3 → vantage_python-0.4.0}/.gitignore +0 -0
- {vantage_python-0.3.3 → vantage_python-0.4.0}/LICENSE +0 -0
- {vantage_python-0.3.3 → vantage_python-0.4.0}/Makefile +0 -0
- {vantage_python-0.3.3 → vantage_python-0.4.0}/README.md +0 -0
- {vantage_python-0.3.3 → vantage_python-0.4.0}/src/vantage/__init__.py +0 -0
- {vantage_python-0.3.3 → vantage_python-0.4.0}/src/vantage/_async/__init__.py +0 -0
- {vantage_python-0.3.3 → vantage_python-0.4.0}/src/vantage/_sync/__init__.py +0 -0
- {vantage_python-0.3.3 → vantage_python-0.4.0}/src/vantage/py.typed +0 -0
- {vantage_python-0.3.3 → vantage_python-0.4.0}/tests/test_e2e.py +0 -0
|
@@ -628,7 +628,7 @@ def _collect_handler_routes(resources: dict[str, Resource]) -> dict[str, list[tu
|
|
|
628
628
|
for endpoint in resource.endpoints:
|
|
629
629
|
if endpoint.response_handler:
|
|
630
630
|
handler_routes.setdefault(endpoint.response_handler, []).append(
|
|
631
|
-
(endpoint.method, endpoint.path)
|
|
631
|
+
(endpoint.method, "/v2" + endpoint.path)
|
|
632
632
|
)
|
|
633
633
|
return handler_routes
|
|
634
634
|
|
|
@@ -643,7 +643,7 @@ def _collect_boolean_status_prefixes(resources: dict[str, Resource]) -> list[tup
|
|
|
643
643
|
for resource in resources.values():
|
|
644
644
|
for endpoint in resource.endpoints:
|
|
645
645
|
if endpoint.boolean_status:
|
|
646
|
-
prefix = endpoint.path.split("{")[0]
|
|
646
|
+
prefix = ("/v2" + endpoint.path).split("{")[0]
|
|
647
647
|
result.append((endpoint.method, prefix))
|
|
648
648
|
return result
|
|
649
649
|
|
|
@@ -883,7 +883,7 @@ def generate_sync_method(endpoint: Endpoint, method_name: str) -> list[str]:
|
|
|
883
883
|
lines.append(' """')
|
|
884
884
|
|
|
885
885
|
# Build path with parameters (URL-encode each path arg)
|
|
886
|
-
path = endpoint.path
|
|
886
|
+
path = "/v2" + endpoint.path
|
|
887
887
|
for pp in path_params:
|
|
888
888
|
path = path.replace(f"{{{pp.name}}}", f"{{quote(str({pp.python_name}), safe='')}}")
|
|
889
889
|
|
|
@@ -1163,7 +1163,7 @@ def generate_async_method(endpoint: Endpoint, method_name: str) -> list[str]:
|
|
|
1163
1163
|
lines.append(' """')
|
|
1164
1164
|
|
|
1165
1165
|
# Build path with parameters (URL-encode each path arg)
|
|
1166
|
-
path = endpoint.path
|
|
1166
|
+
path = "/v2" + endpoint.path
|
|
1167
1167
|
for pp in path_params:
|
|
1168
1168
|
path = path.replace(f"{{{pp.name}}}", f"{{quote(str({pp.python_name}), safe='')}}")
|
|
1169
1169
|
|