vectoramp 0.3.0__tar.gz → 0.3.1__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.
Files changed (25) hide show
  1. {vectoramp-0.3.0 → vectoramp-0.3.1}/PKG-INFO +1 -1
  2. {vectoramp-0.3.0 → vectoramp-0.3.1}/pyproject.toml +1 -1
  3. {vectoramp-0.3.0 → vectoramp-0.3.1}/src/vectoramp/resources.py +1 -1
  4. {vectoramp-0.3.0 → vectoramp-0.3.1}/src/vectoramp/transport.py +1 -1
  5. {vectoramp-0.3.0 → vectoramp-0.3.1}/tests/test_client.py +2 -2
  6. {vectoramp-0.3.0 → vectoramp-0.3.1}/.github/images/logo-full-dark.svg +0 -0
  7. {vectoramp-0.3.0 → vectoramp-0.3.1}/.github/images/logo-full-light.svg +0 -0
  8. {vectoramp-0.3.0 → vectoramp-0.3.1}/.github/workflows/ci.yml +0 -0
  9. {vectoramp-0.3.0 → vectoramp-0.3.1}/.github/workflows/publish.yml +0 -0
  10. {vectoramp-0.3.0 → vectoramp-0.3.1}/.gitignore +0 -0
  11. {vectoramp-0.3.0 → vectoramp-0.3.1}/CHANGELOG.md +0 -0
  12. {vectoramp-0.3.0 → vectoramp-0.3.1}/CONTRIBUTING.md +0 -0
  13. {vectoramp-0.3.0 → vectoramp-0.3.1}/LICENSE +0 -0
  14. {vectoramp-0.3.0 → vectoramp-0.3.1}/NOTICE +0 -0
  15. {vectoramp-0.3.0 → vectoramp-0.3.1}/README.md +0 -0
  16. {vectoramp-0.3.0 → vectoramp-0.3.1}/SECURITY.md +0 -0
  17. {vectoramp-0.3.0 → vectoramp-0.3.1}/src/vectoramp/__init__.py +0 -0
  18. {vectoramp-0.3.0 → vectoramp-0.3.1}/src/vectoramp/client.py +0 -0
  19. {vectoramp-0.3.0 → vectoramp-0.3.1}/src/vectoramp/connections.py +0 -0
  20. {vectoramp-0.3.0 → vectoramp-0.3.1}/src/vectoramp/embeddings.py +0 -0
  21. {vectoramp-0.3.0 → vectoramp-0.3.1}/src/vectoramp/exceptions.py +0 -0
  22. {vectoramp-0.3.0 → vectoramp-0.3.1}/src/vectoramp/py.typed +0 -0
  23. {vectoramp-0.3.0 → vectoramp-0.3.1}/src/vectoramp/sources.py +0 -0
  24. {vectoramp-0.3.0 → vectoramp-0.3.1}/src/vectoramp/types.py +0 -0
  25. {vectoramp-0.3.0 → vectoramp-0.3.1}/tests/test_connections_and_sources.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vectoramp
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Python SDK for the VectorAmp API
5
5
  Project-URL: Homepage, https://vectoramp.com
6
6
  Project-URL: Documentation, https://docs.vectoramp.com
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "vectoramp"
7
- version = "0.3.0"
7
+ version = "0.3.1"
8
8
  description = "Python SDK for the VectorAmp API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -710,7 +710,7 @@ class DatasetsResource:
710
710
  if write_concern is not None:
711
711
  body["write_concern"] = dict(write_concern)
712
712
  return self._transport.request(
713
- "DELETE", f"/api/v1/datasets/{dataset_id}/vectors", json_body=body
713
+ "DELETE", f"/datasets/{dataset_id}/vectors", json_body=body
714
714
  )
715
715
 
716
716
  def embed(
@@ -157,7 +157,7 @@ class RestTransport(BaseTransport):
157
157
  return urljoin(self.base_url, path.lstrip("/"))
158
158
 
159
159
  def _headers(self, headers: Optional[Mapping[str, str]] = None) -> Dict[str, str]:
160
- merged = {"X-API-Key": self.api_key, "User-Agent": "vectoramp-python/0.3.0"}
160
+ merged = {"X-API-Key": self.api_key, "User-Agent": "vectoramp-python/0.3.1"}
161
161
  if headers:
162
162
  merged.update(headers)
163
163
  return merged
@@ -251,10 +251,10 @@ def test_delete_vectors_payload_and_dataset_helper() -> None:
251
251
  assert calls == [
252
252
  (
253
253
  "DELETE",
254
- "/api/v1/datasets/ds_1/vectors",
254
+ "/datasets/ds_1/vectors",
255
255
  {"ids": ["vec-a", 42], "write_concern": {"wait": True}},
256
256
  ),
257
- ("DELETE", "/api/v1/datasets/ds_1/vectors", {"ids": ["vec-c"]}),
257
+ ("DELETE", "/datasets/ds_1/vectors", {"ids": ["vec-c"]}),
258
258
  ]
259
259
 
260
260
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes