Skip to main content

qdrant-tensr-client — Lightweight Python SDK for the Qdrant Tensr Dev external API

Project description

qdrant-tensr-dev

Lightweight Python SDK for the Qdrant Tensr Dev external API.

  • Zero required dependencies — uses httpx, requests, or stdlib urllib in that order
  • Single file — copy qdrant_tensr_dev.py or install via pip
  • Mirrors the Qdrant client API — familiar method names (upsert, search, scroll, …)

Install

pip install qdrant-tensr-dev
# optional: bring your own HTTP library
pip install qdrant-tensr-dev[httpx]
pip install qdrant-tensr-dev[requests]

Quick start

from qdrant_tensr_dev import TensrClient

client = TensrClient(
    base_url="https://your-dashboard-host",
    api_key="YOUR_API_KEY",          # from Dashboard → Groups → API Keys
)

# List all collections in your group
cols = client.list_collections()
print(cols)
# {"group_id": "...", "collections": [{"name": "...", "vector_size": 384, "distance": "Cosine"}, ...]}

# Get detailed info for one collection
info = client.get_collection("my-collection")

# Upsert vectors
client.upsert("my-collection", points=[
    {
        "id": "550e8400-e29b-41d4-a716-446655440001",
        "vector": [0.1, 0.2, 0.3],
        "payload": {"text": "hello world", "source": "docs"},
    },
])

# Nearest-neighbour search
results = client.search("my-collection", vector=[0.1, 0.2, 0.3], limit=5)
for hit in results:
    print(hit["score"], hit["payload"])

# Cross-collection search across every collection in your group at once
hits = client.search_all(vector=[0.1, 0.2, 0.3], limit=10)
for hit in hits:
    print(hit["collection"], hit["score"], hit["payload"])

# Scroll (paginate) all points
offset = None
while True:
    page = client.scroll("my-collection", limit=100, offset=offset)
    for pt in page["points"]:
        print(pt["id"], pt["payload"])
    offset = page["next_offset"]
    if offset is None:
        break

# Get a single point
pt = client.get_point("my-collection", "550e8400-e29b-41d4-a716-446655440001")

# Count points
total = client.count("my-collection")

# Delete points
client.delete("my-collection", ids=["550e8400-e29b-41d4-a716-446655440001"])

API reference

Method Description
list_collections() List all active collections in your group
get_collection(name) Get metadata + live stats for a collection
upsert(collection, points) Insert or update points
delete(collection, ids) Delete points by ID
get_point(collection, point_id) Retrieve a single point
scroll(collection, ...) Page through all points
count(collection) Count total points
search(collection, vector, ...) Nearest-neighbour search (single collection)
search_all(vector, ...) Cross-collection search across all group collections

All methods raise TensrError(status_code, detail) on HTTP errors.

CLI smoke-test

python -m qdrant_tensr_dev --url https://your-host --key YOUR_KEY

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qdrant_tensr_dev-0.3.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qdrant_tensr_dev-0.3.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file qdrant_tensr_dev-0.3.0.tar.gz.

File metadata

  • Download URL: qdrant_tensr_dev-0.3.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for qdrant_tensr_dev-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f015fc8ce2f3ae7ff6d7085068c91ac71867ab060b627eb2326a5e30e1895b1b
MD5 23375e77f31d29279485d50b6ee9274e
BLAKE2b-256 deca07afa74b55ff237b7d6b5df22a9e45a7a388bcac53764b4422296eb0dd02

See more details on using hashes here.

File details

Details for the file qdrant_tensr_dev-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: qdrant_tensr_dev-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for qdrant_tensr_dev-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f8344c6ff0c3ec1282e1b4839662a402af1bd513342d680b2472d185399b5f5
MD5 ccce3be83229f1eb71a750a9e5206fef
BLAKE2b-256 19348fe5e97aa60f2f749b33bbf973a8d542c4ab4445a9817dee903cf7411140

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page