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.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swarmv-1.2.1.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmv-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.3 kB
Release files / swarmv-1.2.1.tar.gz
| Download URL | swarmv-1.2.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b972398c215d5979ce931347d50e26fae0d8153b54829092c7abc5848cab7060
|
|
BLAKE2b-256 checksum How to use checksums |
d6b17de818d4ecce0c9727fc07477d38d660ca3804aa3d4acf97a28c81df6e19
|
| 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.2.1-py3-none-any.whl
| Download URL | swarmv-1.2.1-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bacaa862a4bbfc550fc96061afe19af0ddb0077bc5fba56125329e28268c1031
|
|
BLAKE2b-256 checksum How to use checksums |
391e5a6e5c45a42dd8ad4a1bf1386faefe7a4ee9e7701354fa22aa9e019770c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|