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://edgevec.pages.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.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 | |
|---|---|---|---|
| swarmv-1.2.0.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmv-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.3 kB
Release files / swarmv-1.2.0.tar.gz
| Download URL | swarmv-1.2.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02ef9798fba7eae2bd210ee4cf430114886249d8ffe30e772252c56ebd3fdfc8
|
|
BLAKE2b-256 checksum How to use checksums |
db45634f22e2457501c65695f0444c317084743574c41dd360e8c01221c7b63d
|
| 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.0-py3-none-any.whl
| Download URL | swarmv-1.2.0-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4cbf86607bc439c19af2645fa495eb773f8332e5c48a9d0694ac8f69e87e219
|
|
BLAKE2b-256 checksum How to use checksums |
8c20cf9ae1d87f530c7507150422f64e776f90be934099baa5ecedba8698a1c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|