Skip to main content

VernKV Python SDK (vernkv)

VernKV logo

Zero-dependency Python SDK and local LSM-Tree Key-Value & Vector Search Database for Linux (x86_64 / aarch64) and Windows (amd64), bundling a standalone pure-Go vernkv-server binary inside every wheel.


Installation

pip install vernkv
# or with uv:
uv add vernkv

No Go compiler or external Python dependencies are required.


Architecture

Python Client (VernKV / VernKVStore / SemanticCache / ConversationMemory)
   ├── Binary RESP2 TCP (hot path: put / get / delete / vadd / vsearch)
   └── HTTP JSON REST   (admin / batch / scan / health)
          │
          ▼
Bundled Go Server (vernkv-server)
   ├── Core LSM-Tree Engine (WAL Group Commit -> MemTable -> L0..L6 SSTables + MANIFEST)
   └── Pure-Go Vector Index (Flat & HNSW + atomic _vec: / _vmeta: / _vdoc: batches)

Quick Start

1. Local Embedded KV + TTL + Prefix Scan

from vernkv import VernKV

with VernKV.local("./data/my_db", sync_writes=False) as db:
    db.put("user:1:role", "admin")
    db.put("session:tmp", "token", ttl_seconds=3600)

    print(db.get("user:1:role"))          # -> "admin"
    print(db.scan(prefix="user:", limit=10))

2. Hybrid Vector RAG (VernKVStore)

Combine dense similarity search (flat or hnsw, cosine / dot / l2) with metadata filters:

from vernkv import VernKV, VernKVStore

with VernKV.local("./data/rag_db", sync_writes=False) as db:
    store = VernKVStore(db, index="docs", embed_fn=my_embed_fn, index_type="hnsw")
    store.add_texts(
        ["VernKV persists vectors atomically in SSTables."],
        metadatas=[{"source": "arch.md", "page": 1}],
        ids=["chunk-1"],
    )
    hits = store.search(
        "How are vectors stored?",
        top_k=5,
        filter={"source": "arch.md", "page": {"$gte": 1}},
    )
    for hit in hits:
        print(hit.id, hit.score, hit.meta, hit.doc)

3. Semantic Prompt Cache & Conversation Memory

from vernkv import ConversationMemory, SemanticCache, VernKV

with VernKV.local("./data/ai_db", sync_writes=False) as db:
    cache = SemanticCache(db, embed_fn=my_embed_fn, threshold=0.95, ttl_seconds=600)
    cache.store("Explain WAL compaction", "WAL truncates after MemTable flush.")
    print(cache.lookup("How does WAL compaction work?"))

    mem = ConversationMemory(db, session_id="thread-42", ttl_seconds=86400)
    mem.append("user", "Hello!")
    mem.append("assistant", "Hi, how can I help?")
    print(mem.messages(limit=20))

4. Connect to a Remote vernkv-server

from vernkv import VernKV

with VernKV(
    "http://127.0.0.1:8080",
    resp_addr="127.0.0.1:6379",
    username="admin",
    password="StrongPassword123!",
) as db:
    print(db.health())

You can also launch the bundled server directly from your shell:

vernkv-server --help

Metadata

Release files for vernkv 1.0.0.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for vernkv 1.0.0.post1
File Interpreter ABI Platform Actions
vernkv-1.0.0.post1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for vernkv-1.0.0.post1-py3-none-win_amd64.whl
vernkv-1.0.0.post1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for vernkv-1.0.0.post1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
vernkv-1.0.0.post1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for vernkv-1.0.0.post1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Total release size: 19.7 MB

Release files / vernkv-1.0.0.post1-py3-none-win_amd64.whl

Download URL vernkv-1.0.0.post1-py3-none-win_amd64.whl
Size 6.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f8c92d15423ac3102dbc6676b289dcc0c2bd2b81020a568dac9d0209ff499078
BLAKE2b-256 checksum
How to use checksums
b0f102c2cd2642bb52bea7f00052a8462b80700e691aa756e0674f56436eb338
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / vernkv-1.0.0.post1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL vernkv-1.0.0.post1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 6.7 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8280daad7fcd31195ad44bef2471d77a1a23c4c88a966456983a093acad05362
BLAKE2b-256 checksum
How to use checksums
82727bf24fa582797dc5ce00c1c35bbcf29bf5c11f043b228d77e7ca3b5af513
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / vernkv-1.0.0.post1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL vernkv-1.0.0.post1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 6.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
0859d0f138dd118d4ac877ba640e3eb91359d57faed54d35dc77a17cf273bb67
BLAKE2b-256 checksum
How to use checksums
0acd7390f304f3d3fb248c95cb306a258939692c24b6553962b41dccee66ac8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for vernkv 1.0.0.post1

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.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for vernkv-1.0.0.post1-py3-none-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page