SwarmV Python SDK
pip install "swarmv[fast]" # [fast] adds orjson + numpy for max throughput
from swarmv import SwarmV
with SwarmV(api_key="...") as vec:
vec.insert({"id": "1", "vector": embedding, "metadata": {"lang": "en"}}) # ids: numeric strings
results = vec.search(query_embedding, top_k=5, filter={"lang": "en"})
vec.delete("1")
Async, with concurrent batching:
from swarmv import AsyncSwarmV
async with AsyncSwarmV(api_key="...") as vec:
batches = await vec.search_many(queries, top_k=5, concurrency=64)
await vec.insert_many(records)
Feature parity with the TypeScript SDK: insert, search (top_k, nprobe, filter),
delete, and SemanticCache (plus AsyncSemanticCache). Python-only extras:
insert_many, search_many, numpy input.
Temporary failures (429, 5xx including "write backlog full" during heavy bulk loads, network errors)
are retried automatically, waiting as long as the server's Retry-After asks: max_retries=6 by
default. Indexes grow to 1,000,000 vectors (split into shards automatically past 100,000); see
https://swarmv.dev/docs for limits and errors.
Performance: pooled HTTP/2 keep-alive connections, optional orjson, no per-element Python loops for numpy arrays. Reuse one client per process.
Metadata
Release files for swarmv 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swarmv-1.3.0.tar.gz | 9.8 kB | Without provenance | Details for swarmv-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swarmv-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for swarmv-1.3.0-py3-none-any.whl |
Total release size: 20.3 kB
Release files / swarmv-1.3.0.tar.gz
| Download URL | swarmv-1.3.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89a0db0ad63f1a36eee48fd5482e45667350b75dddcd8ec161c653e3382e89a9
|
|
BLAKE2b-256 checksum How to use checksums |
e5eeecbdb370b9e3e0765a390e1f4baabc5b824e03bfded758c34d1f49f53eef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|
Release files / swarmv-1.3.0-py3-none-any.whl
| Download URL | swarmv-1.3.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c839fb4ee9487890b114ab2fd10448584c1d49da3af7d00460613c777003e305
|
|
BLAKE2b-256 checksum How to use checksums |
a7a95bef5f418bd62851592b5bb0a2da85c9c3af05b4b4a6ba9c4ae877310783
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|
Security for swarmv 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.