vantage-python 0.3.3__tar.gz → 0.5.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vantage-python
3
- Version: 0.3.3
3
+ Version: 0.5.0
4
4
  Summary: Python SDK for the Vantage API
5
5
  Project-URL: Homepage, https://github.com/vantage-sh/vantage-python
6
6
  Project-URL: Repository, https://github.com/vantage-sh/vantage-python
@@ -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
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "vantage-python"
7
- version = "0.3.3"
7
+ version = "0.5.0"
8
8
  description = "Python SDK for the Vantage API"
9
9
  readme = "README.md"
10
10
  license = "MIT"