Skip to main content

SNKV Python Bindings

Build PyPI License

Idiomatic Python 3.8+ bindings for SNKV — a lightweight, ACID-compliant embedded key-value store built directly on SQLite's B-Tree engine.

If you find it useful, a ⭐ on GitHub goes a long way!

Using SNKV in a product? Paid support, device-specific builds and custom features are available. See Commercial Support.


Features

  • snkvctl CLI — installed automatically; command-line access to the key-value APIs (put, get, scan, txn, stats, cf, encrypt, and more)
  • Dict-style API — db["key"] = value, val = db["key"], del db["key"], "key" in db
  • Context managers — with KVStore(...) as db and with db.create_column_family(...) as cf for guaranteed cleanup
  • Prefix iterators — efficient namespace scans with db.prefix_iterator(b"user:")
  • Reverse iterators — walk keys in descending order with db.reverse_iterator() and db.reverse_prefix_iterator(b"user:")
  • WAL checkpoint control — PASSIVE / FULL / RESTART / TRUNCATE modes via db.checkpoint()
  • Auto-checkpoint — set wal_auto_checkpoint=N to checkpoint automatically once the WAL holds N pages (default 1000)
  • Typed exceptions — NotFoundError, BusyError, LockedError, ReadOnlyError, CorruptError all subclass snkv.Error
  • No Python dependencies — a CPython extension in C (the vector index in C++17); building from source needs a C/C++ compiler and python3-dev. Vector search adds numpy.
  • Native TTL — per-key expiry with put(ttl=seconds), dict-style db[key, ttl] = value, lazy expiry on get, and purge_expired()
  • Encryption — per-value XChaCha20-Poly1305 encryption with Argon2id key derivation; transparent to all existing APIs
  • Seek iterators — jump to any key in O(log N) with it.seek(key), chainable and works on prefix/reverse iterators
  • Conditional insert — atomic put_if_absent(key, value, ttl=None) returns True if inserted; safe for distributed locks and dedup
  • Bulk clear — db.clear() / cf.clear() truncates all keys in O(pages) without dropping the store
  • Key count — db.count() / cf.count() returns entry count in O(pages); CF counts are fully isolated
  • Extended stats — db.stats() exposes 12 counters including bytes_read, bytes_written, wal_commits, ttl_expired, db_pages; reset with db.stats_reset()
  • Vector search — integrated HNSW approximate nearest-neighbour index via snkv[vector]; sidecar persistence, quantization (f32/f16/i8), metadata filtering, exact rerank, TTL on vectors, and encryption support
  • 606 tests — full pytest suite covering ACID, WAL, crash recovery, concurrency, column families, TTL, encryption, and vector search

Installation

Pre-built binary wheels are available for Linux, macOS, and Windows — no compiler needed.

Windows / macOS:

pip install snkv

Linux (Debian/Ubuntu):

python3 -m venv .venv
source .venv/bin/activate
pip install snkv

Linux system Python is "externally managed" (PEP 668) and blocks system-wide pip installs. Use a virtual environment.

Build from Source

# System dependencies
sudo apt-get install -y build-essential python3-dev python3-pip

# Python build dependencies
pip3 install setuptools wheel pytest

# Build
cd python
python3 setup.py build_ext --inplace

macOS

# Compiler (skip if already installed)
xcode-select --install

# Python build dependencies
pip3 install setuptools wheel pytest

# Build
cd python
python3 setup.py build_ext --inplace
  1. Install Python 3.8+ — check "Add Python to PATH"
  2. Install Visual Studio Build Tools — select "Desktop development with C++"
  3. Open a normal terminal (setuptools finds Visual Studio itself) or "x64 Native Tools Command Prompt for VS 2022". Avoid "Developer PowerShell for VS": it defaults to 32-bit and fails with 64-bit Python.
:: Python build dependencies
pip install setuptools wheel pytest

:: Build
cd python
python setup.py build_ext --inplace

Windows — MSYS2 MinGW64 shell

Open the MSYS2 MinGW64 shell (not plain MSYS2, not cmd.exe):

# System + Python dependencies (one-time)
pacman -S --needed mingw-w64-x86_64-gcc \
                   mingw-w64-x86_64-python \
                   mingw-w64-x86_64-python-pip \
                   mingw-w64-x86_64-python-setuptools \
                   mingw-w64-x86_64-python-pytest \
                   mingw-w64-x86_64-python-numpy    # numpy: vector search only

# Build
cd python
python3 setup.py build_ext --inplace

On all platforms, setup.py automatically locates snkv.h — no manual header step needed. Where make is available it regenerates it via make snkv.h; otherwise it uses an existing python/snkv.h, or downloads the one from the latest GitHub release. To build Windows from the current code, generate it first from Git Bash: sh scripts/gen_snkv_header.sh > python/snkv.h.


Quick Start

from snkv import KVStore

with KVStore("mydb.db") as db:
    db["hello"] = "world"
    print(db["hello"].decode())   # world

API Reference

Opening a store

from snkv import KVStore, JOURNAL_WAL, JOURNAL_DELETE, SYNC_NORMAL, SYNC_OFF, SYNC_FULL

with KVStore(
    "mydb.db",
    journal_mode=JOURNAL_WAL,   # JOURNAL_WAL (default) or JOURNAL_DELETE
    sync_level=SYNC_NORMAL,     # SYNC_NORMAL (default), SYNC_OFF, SYNC_FULL
    cache_size=2000,            # pages (~8 MB default)
    page_size=4096,             # bytes; new databases only
    busy_timeout=5000,          # ms to retry on SQLITE_BUSY (default 0)
    read_only=False,            # open read-only
    wal_auto_checkpoint=1000,   # checkpoint at N WAL pages (0 = default 1000, <0 = off)
) as db:
    ...

CRUD

# Write
db["key"] = b"value"          # bytes or str keys/values are both accepted
db["key"] = "value"           # str is UTF-8 encoded automatically

# Read
val = db["key"]               # returns bytes; raises NotFoundError if missing
val = db.get("key")           # returns bytes or None
val = db.get("key", b"def")   # with default

# Check existence
exists = "key" in db
exists = db.exists(b"key")

# Delete — both raise NotFoundError if the key is absent
del db["key"]
db["key"] = b"value"
db.delete(b"key")             # same as del

# Upsert
db.put(b"key", b"value")      # identical to db["key"] = value

Transactions

db.begin(write=True)
db["a"] = "1"
db["b"] = "2"
db.commit()          # persist

db.begin(write=True)
db["c"] = "3"
db.rollback()        # discard — "c" is never written

Auto-commit is the default: each db["key"] = value outside an explicit transaction is committed immediately.

Column Families

Logical namespaces within a single database file. Always close cf before db.

# Create (first use)
with db.create_column_family("users") as cf:
    cf[b"alice"] = b"admin"
    cf[b"bob"]   = b"viewer"

# Open (subsequent uses)
with db.open_column_family("users") as cf:
    print(cf[b"alice"])       # b"admin"

# List all column families
names = db.list_column_families()   # ["users", ...]

# Drop
db.drop_column_family("users")

Iterators

# Full scan — yields (key, value) tuples in key order
for key, value in db.iterator():
    print(key, value)

# Prefix scan
for key, value in db.prefix_iterator(b"user:"):
    print(key, value)

# Manual control
it = db.iterator()
it.first()
while not it.eof:
    print(it.key, it.value)
    it.next()
it.close()

# As a context manager
with db.iterator() as it:
    for key, value in it:
        ...

Reverse Iterators

Walk keys in descending order — no full scan, no sort, pure B-tree traversal.

# Full reverse scan
for key, value in db.reverse_iterator():
    print(key, value)

# Reverse prefix scan — visits only matching keys, largest first
for key, value in db.reverse_prefix_iterator(b"user:"):
    print(key, value)

# Manual control
it = db.reverse_iterator()
it.last()
while not it.eof:
    print(it.key, it.value)
    it.prev()
it.close()

# As a context manager
with db.reverse_prefix_iterator(b"log:") as it:
    for key, value in it:
        ...

Column families support reverse iterators identically via cf.reverse_iterator() and cf.reverse_prefix_iterator().

WAL Checkpoint

from snkv import CHECKPOINT_PASSIVE, CHECKPOINT_FULL, CHECKPOINT_RESTART, CHECKPOINT_TRUNCATE

# Returns (nLog, nCkpt) — WAL frames total / frames written to DB
nlog, nckpt = db.checkpoint(CHECKPOINT_PASSIVE)    # copy frames without blocking
nlog, nckpt = db.checkpoint(CHECKPOINT_FULL)       # wait for writers, flush all
nlog, nckpt = db.checkpoint(CHECKPOINT_RESTART)    # like FULL, reset write position
nlog, nckpt = db.checkpoint(CHECKPOINT_TRUNCATE)   # like RESTART, truncate WAL file

Must be called outside an active write transaction. Use wal_auto_checkpoint to auto-checkpoint instead.

Iterator Seek

Jump to any position in O(log N) without scanning from the start.

with db.iterator() as it:
    it.seek(b"user:bob")        # forward: position at first key >= target
    while not it.eof:
        print(it.key, it.value)
        it.next()

with db.iterator(reverse=True) as it:
    it.last()
    it.seek(b"user:bob")        # reverse: position at last key <= target
    while not it.eof:
        print(it.key, it.value)
        it.prev()

# Works on prefix iterators too — boundary still enforced
with db.iterator(prefix=b"user:") as it:
    it.seek(b"user:carol")      # skip straight to "user:carol"
    while not it.eof:
        print(it.key)
        it.next()

# seek() returns self for chaining
key = db.iterator().seek(b"target").key

Conditional Insert

Atomically insert a key only when it is absent — safe for distributed locks and deduplication.

# Returns True if inserted, False if the key already existed.
inserted = db.put_if_absent(b"lock", b"owner:alice")

# With TTL — the key auto-releases after the given number of seconds.
inserted = db.put_if_absent(b"session:42", b"token-xyz", ttl=30)

# Column families support the same method.
with db.create_column_family("dedup") as cf:
    if cf.put_if_absent(b"msg:001", b"hello"):
        process(b"msg:001")     # only the first caller reaches here

Bulk Clear

Truncate all entries from a store or column family in O(pages) — no iterating, no individual deletes.

db.clear()      # remove every key from the default CF

with db.create_column_family("cache") as cf:
    cf.clear()  # only this CF is affected; other CFs are untouched

TTL index entries are cleared atomically alongside data entries. Close all iterators before calling clear().

Key Count

Count entries without scanning individual keys.

n = db.count()                           # total entries in the default CF

with db.create_column_family("orders") as cf:
    cf[b"o1"] = b"x"
    n = cf.count()                       # only this CF; TTL index not counted

# count() includes expired-but-not-yet-purged keys.
# Call purge_expired() first for an accurate live count.
db.purge_expired()
n = db.count()

Maintenance

db.sync()                 # flush OS write buffers (fsync)
db.vacuum(100)            # reclaim up to 100 unused pages incrementally
db.integrity_check()      # raises CorruptError if database is corrupt

# Extended stats — 12 counters
stats = db.stats()
# Keys: puts, gets, deletes, iterations, errors,
#       bytes_read, bytes_written, wal_commits, checkpoints,
#       ttl_expired, ttl_purged, db_pages

# Reset all cumulative counters (db_pages is always live)
db.stats_reset()

TTL — Native Key Expiry

Per-key TTL with automatic lazy expiry on read.

# Put with TTL (seconds, float precision)
db.put(b"session", b"tok123", ttl=60)   # expires in 60 s
db[b"token", 30] = b"bearer-xyz"        # dict-style shorthand

# Get — expired keys are silently evicted and raise NotFoundError
val = db.get(b"session")                # returns bytes or None if expired

# Check remaining lifetime
from snkv import NotFoundError
try:
    remaining = db.ttl(b"session")      # seconds left (float); None if the key has no TTL;
                                        # 0.0 if expired but not yet read or purged
except NotFoundError:
    remaining = None                    # key missing (or expired and already removed)

# Purge all expired keys from disk (returns count removed)
n = db.purge_expired()

# Column families support TTL identically
with db.create_column_family("cache") as cf:
    cf.put(b"item", b"data", ttl=10)
    cf[b"item2", 5] = b"data2"
    n = cf.purge_expired()

Encryption

Transparent per-value encryption. All existing APIs work without modification.

from snkv import KVStore, AuthError

# Create / open encrypted store
with KVStore.open_encrypted("mydb.db", b"hunter2") as db:
    db[b"secret"] = b"classified"
    print(db.is_encrypted())      # True
    print(db[b"secret"])          # b"classified" — transparent decrypt

# Wrong password raises AuthError
try:
    KVStore.open_encrypted("mydb.db", b"wrong")
except AuthError:
    print("bad password")

# Change password in-place (re-encrypts all values atomically)
with KVStore.open_encrypted("mydb.db", b"hunter2") as db:
    db.reencrypt(b"new-strong-pass")

# Remove encryption permanently
with KVStore.open_encrypted("mydb.db", b"new-strong-pass") as db:
    db.remove_encryption()
with KVStore("mydb.db") as db:    # plain open works now
    print(db[b"secret"])
Method Description
KVStore.open_encrypted(path, password) Class method — open or create encrypted store
db.is_encrypted() Returns True if store is encrypted
db.reencrypt(new_password) Change password; re-encrypts all values atomically
db.remove_encryption() Decrypt in-place; store becomes plain

Cryptographic details: XChaCha20-Poly1305 per value · Argon2id KDF (64 MB, 3 iterations) · 40-byte overhead per value (nonce + MAC) · key wiped from memory on close.


Integrated HNSW approximate nearest-neighbour index: the native SNKV vector store (kvstore_vec, built on usearch), compiled into the snkv extension. All vectors and KV data live in the same .db file — no external service. The in-memory index is also cached in a sidecar file to speed up reopening (see below).

Installation

pip install snkv[vector]   # adds numpy; the vector index is built into snkv

Quick Start

from snkv.vector import VectorStore
import numpy as np

with VectorStore("store.db", dim=128, space="cosine") as vs:
    vs.vector_put(b"doc:1", b"hello world", np.random.rand(128).astype("f4"))
    results = vs.search(np.random.rand(128).astype("f4"), top_k=5)
    for r in results:
        print(r.key, r.distance, r.value)

Parameters

Parameter Default Description
path — Path to .db file. None for in-memory.
dim — Vector dimension. Fixed for the lifetime of the store.
space "l2" Distance metric: "l2" (squared L2), "cosine", or "ip" (inner product).
connectivity 16 HNSW M parameter.
expansion_add 128 HNSW expansion during index build.
expansion_search None HNSW expansion at query time. None restores the stored value (default 64).
dtype "f32" In-memory index precision: "f32", "f16" (half RAM), or "i8" (quarter RAM). On-disk storage is always float32.
password None Open/create an encrypted store. Sidecar is disabled for encrypted stores.

Quantization

dtype controls the in-memory HNSW graph precision only — on-disk storage in __snkv_vec__ is always float32.

dtype Vector data in RAM (dim=768; graph links extra) Notes
"f32" 3072 bytes Full precision (default)
"f16" 1536 bytes Half RAM, negligible recall loss
"i8" 768 bytes Quarter RAM, small recall cost

For 1 M vectors at dim=768: f32 ≈ 3 GB → f16 ≈ 1.5 GB → i8 ≈ 768 MB.

# Half RAM for the in-memory index; on-disk vectors still float32
with VectorStore("store.db", dim=768, space="cosine", dtype="f16") as vs:
    vs.vector_put(b"doc:1", b"hello", np.random.rand(768).astype("f4"))

Index Persistence (Sidecar)

For unencrypted file-backed stores, the HNSW index is saved to {path}.usearch on close() and reloaded on the next open — skipping the O(n×d) CF rebuild. A companion {path}.usearch.nid stamp file detects any write that occurred after the last clean close (including crash scenarios). Stale or corrupt sidecars are silently discarded and the index is rebuilt from the column families.

Encrypted stores and in-memory stores always rebuild from column families.

Key Methods

# Write
vs.vector_put(b"key", b"value", vec, ttl=None, metadata=None)
vs.vector_put_batch([(b"key", b"value", vec), ...], ttl=None)

# Search
results = vs.search(query_vec, top_k=10)                           # ANN
results = vs.search(query_vec, top_k=10, filter={"topic": "ml"})  # metadata filter
results = vs.search(query_vec, top_k=10, rerank=True)             # exact rerank
results = vs.search(query_vec, top_k=10, max_distance=0.5)        # distance cutoff
pairs   = vs.search_keys(query_vec, top_k=10)                     # keys + distances only

# SearchResult fields: key, value, distance, metadata
# NOTE: result.metadata is None unless filter= is passed to search().
# To access metadata without filtering, call get_metadata(key) after the search:
for r in results:
    meta = vs.get_metadata(r.key)   # dict or None — always works

# Read
vec  = vs.vector_get(b"key")          # np.ndarray(dim,) float32
val  = vs.get(b"key")                 # value bytes from KV store
meta = vs.get_metadata(b"key")        # dict or None

# Delete / maintenance
vs.delete(b"key")
n = vs.vector_purge_expired()         # remove expired vectors from index + CFs

# Stats
stats = vs.vector_stats()
# Keys: dim, space, dtype, connectivity, expansion_add, expansion_search,
#       count, capacity, fill_ratio, vec_cf_count, has_metadata, sidecar_enabled

# Drop index (KV data preserved)
vs.drop_vector_index()

Encrypted Vector Store

from snkv import AuthError

with VectorStore("store.db", dim=128, password=b"secret") as vs:
    vs.vector_put(b"doc:1", b"classified", np.random.rand(128).astype("f4"))

try:
    VectorStore("store.db", dim=128, password=b"wrong")
except AuthError:
    print("bad password")

Error Hierarchy

snkv.Error (base)
├── snkv.NotFoundError       (also KeyError — raised by db["missing"])
├── snkv.BusyError           (SQLITE_BUSY — another writer holds the lock)
├── snkv.LockedError         (SQLITE_LOCKED)
├── snkv.ReadOnlyError       (write attempted on read-only store)
├── snkv.CorruptError        (database file is corrupt)
├── snkv.AuthError           (wrong password or not an encrypted store)
└── snkv.vector.VectorIndexError  (vector index dropped or empty)
import snkv

try:
    val = db["missing_key"]
except snkv.NotFoundError:
    val = b"default"

try:
    db["key"] = b"value"
except snkv.BusyError:
    # retry after a delay
    ...

Running Tests

Linux / macOS

cd python
python3 -m pytest tests/ -v

Windows — Native Python (x64 Native Tools Command Prompt for VS 2022)

cd python
set PYTHONPATH=.
python -m pytest tests\ -v

Windows — MSYS2 MinGW64 shell

cd python
PYTHONPATH=. python3 -m pytest tests/ -v

All 606 tests should pass (the 95 vector tests need numpy).


Running Examples

Linux / macOS

cd python
PYTHONPATH=. python3 examples/basic.py           # CRUD, binary data, in-memory store
PYTHONPATH=. python3 examples/transactions.py    # begin/commit/rollback
PYTHONPATH=. python3 examples/column_families.py # logical namespaces
PYTHONPATH=. python3 examples/iterators.py       # ordered scan, prefix scan
PYTHONPATH=. python3 examples/config.py          # journal mode, sync, cache, WAL limit
PYTHONPATH=. python3 examples/checkpoint.py      # manual + auto WAL checkpoint
PYTHONPATH=. python3 examples/session_store.py   # real-world session store pattern
PYTHONPATH=. python3 examples/ttl.py             # TTL expiry, rate limiter demo
PYTHONPATH=. python3 examples/encryption.py  # encrypted store, wrong-password, reencrypt
PYTHONPATH=. python3 examples/iterator_reverse.py # reverse iterators, descending scans
PYTHONPATH=. python3 examples/new_apis.py        # seek, put_if_absent, clear, count, stats
PYTHONPATH=. python3 examples/multiprocess.py    # 5 concurrent processes, busy_timeout
PYTHONPATH=. python3 examples/vector.py          # vector search, quantization, sidecar, TTL, encryption

Windows — Native Python (x64 Native Tools Command Prompt for VS 2022)

cd python
set PYTHONPATH=.
python examples\basic.py
python examples\transactions.py
python examples\column_families.py
python examples\iterators.py
python examples\config.py
python examples\checkpoint.py
python examples\session_store.py
python examples\ttl.py
python examples\encryption.py
python examples\iterator_reverse.py
python examples\new_apis.py
python examples\multiprocess.py
python examples\all_apis.py
python examples\vector.py

Windows — MSYS2 MinGW64 shell

cd python
PYTHONPATH=. python3 examples/basic.py
PYTHONPATH=. python3 examples/transactions.py
# ... same pattern for all examples

snkvctl CLI

snkvctl is a command-line interface for SNKV databases, installed automatically alongside the Python package. It gives you shell-level access to every SNKV API — useful for inspecting databases, debugging, scripting, and administration.

pip install snkv          # snkvctl is included; no separate install needed
snkvctl --help

Usage

snkvctl --db PATH [options] COMMAND [args]

Global flags

Flag Default Description
--db PATH — Database file (required)
--cf NAME default CF Target column family
--password PASS — Open as encrypted store
--timeout MS 3000 Busy-retry timeout in ms
--format text|json text Output format
--journal wal|delete wal Journal mode
--sync off|normal|full normal fsync level
--cache-size N 2000 Page cache size (pages)
--page-size N 4096 DB page size (new DBs only)
--read-only off Open read-only
--wal-limit N 0 Checkpoint once the WAL holds N pages (0 = default 1000, negative = off)

Commands

Command Description
put KEY VALUE [--ttl S] Insert or update
get KEY Fetch value
del KEY Delete single key (exit 2 if missing)
del --prefix P Delete all keys with prefix (commits every 10K keys; not a single atomic op for very large sets)
exists KEY Check existence (exit 0=found, 2=missing)
list [--prefix P] [--seek KEY] [--reverse] [--limit N] Print keys
scan [--prefix P] [--seek KEY] [--reverse] [--limit N] Print key+value pairs (key line, then value line; with --format json, one JSON object per line)
count [--prefix P] Count entries
clear Delete all keys in store or CF
set-if-absent KEY VALUE [--ttl S] Insert only if key is absent
ttl KEY Remaining TTL in seconds
purge Delete all expired keys
txn [--dry-run] [--cf NAME] Atomic batch (put/del ops from stdin)
sync Flush to disk (fsync)
cf list|create|drop [NAME] Column family management
stats [--reset] Operation statistics. Counters are per open handle and each command opens a new one, so from the CLI they read 0; db_pages shows the database size
checkpoint [--mode passive|full|restart|truncate] WAL checkpoint
vacuum [--pages N] Reclaim unused pages
check Integrity check
info Path, encryption status, CF list, size
encrypt --new-password PASS Migrate plaintext → encrypted (in-place)
decrypt Remove encryption (requires --password)
rekey --new-password NEW Change encryption password

Examples

# Basic round-trip
snkvctl --db mydb.db put hello world
snkvctl --db mydb.db get hello          # → world

# Prefix scan with JSON output
snkvctl --db mydb.db scan --prefix user: --format json

# TTL
snkvctl --db mydb.db put session tok --ttl 300
snkvctl --db mydb.db ttl session        # → 299.987s remaining

# Column families
snkvctl --db mydb.db cf create users
snkvctl --db mydb.db --cf users put alice admin
snkvctl --db mydb.db --cf users scan

# Atomic multi-key update
printf 'put counter 42\nput flag on\ndel old_key\n' \
  | snkvctl --db mydb.db txn

# Encrypted store
snkvctl --db enc.db encrypt --new-password s3cr3t
snkvctl --db enc.db --password s3cr3t put k v
snkvctl --db enc.db --password s3cr3t get k

# Admin
snkvctl --db mydb.db stats --format json
snkvctl --db mydb.db check
snkvctl --db mydb.db info
snkvctl --db mydb.db checkpoint --mode full

Exit codes

Code Meaning
0 Success
1 Error (I/O, bad args, wrong password, corruption, busy timeout)
2 Not found (key missing — useful in shell if checks)

Benchmarks

Benchmarks run on Windows 11 (Python 3.13, snkv 0.9.0) comparing SNKV against diskcache 5.6.3. Each test reports the best of 3 trials; a second full run gave the same results within a few percent.

Run it yourself:

pip install diskcache
cd python
PYTHONPATH=. PYTHONIOENCODING=utf-8 python examples/benchmark_diskcache.py

Core Operations — N = 10,000 ops, 64-byte values

Operation SNKV diskcache Speedup
Bulk write (batched tx) 12.1 ms 283.8 ms 23.5x
Individual write 101.7 ms 1.19 s 11.7x
Read — hit (100%) 10.3 ms 90.1 ms 8.7x
Read — miss (100%) 8.9 ms 73.8 ms 8.3x
Delete (batched tx) 19.4 ms 94.0 ms 4.9x
Full scan (key + value) 3.4 ms 16.5 ms 4.8x
Write with TTL 46.8 ms 285.5 ms 6.1x

Prefix Scan — 10,000 keys, 1,000 matching ns3:

SNKV uses a native prefix_iterator that visits only matching keys. diskcache has no native prefix support and scans all keys in Python.

Operation SNKV diskcache Speedup
Forward prefix scan 1.5 ms 49.2 ms 31.8x
Reverse prefix scan 1.5 ms 48.1 ms 31.4x

Mixed Workload — 80% read / 20% write, 10,000 ops

Operation SNKV diskcache Speedup
80% read / 20% write 30.9 ms 284.4 ms 9.2x

Value Size Scaling — N = 5,000 ops

Size Op SNKV diskcache Speedup
64 B write 6.9 ms 147.2 ms 21.3x
64 B read 5.4 ms 48.3 ms 8.9x
1 KB write 32.8 ms 186.2 ms 5.7x
1 KB read 28.6 ms 53.1 ms 1.9x
10 KB write 63.9 ms 488.4 ms 7.6x
10 KB read 54.2 ms 80.6 ms 1.5x
100 KB write 412.2 ms 5.70 s 13.8x
100 KB read 344.4 ms 694.2 ms 2.0x

The read advantage narrows for large values (≥ 1 KB), where copying the value costs more than the lookup. SNKV stays faster at every size.

Large Dataset — N = 100,000 keys, 64-byte values

Operation SNKV diskcache Speedup
Bulk write (batched tx) 115.6 ms 2.76 s 23.8x
Read (10,000 sampled) 20.4 ms 100.5 ms 4.9x
Full scan (key + value) 25.3 ms 75.5 ms 3.0x

Durability — Write → Close → Reopen → Verify, N = 10,000 keys

Library Test Write Reopen + Read Verified
SNKV Plain write 28.0 ms 11.8 ms 10,000 / 10,000 ✓
diskcache Plain write 515.3 ms 91.4 ms 10,000 / 10,000 ✓
SNKV Write with TTL 47.6 ms 15.8 ms 10,000 / 10,000 ✓
diskcache Write with TTL 316.2 ms 93.7 ms 10,000 / 10,000 ✓

Write speedup: 18.4x (plain) · 6.6x (TTL). Both stores verified all keys correctly after a cold reopen.

Overall: SNKV faster in 23 / 23 tests — average speedup 11.0x


Thread Safety

A KVStore can be shared between threads (each handle has its own lock), but for parallel work give each thread its own instance. WAL mode serialises concurrent writers at the SQLite level — a BusyError is raised (or retried up to busy_timeout ms) when two writers collide. Multiple readers always make progress concurrently in WAL mode.

import threading
from snkv import KVStore, JOURNAL_WAL

def worker(db_path, worker_id):
    # Each thread opens its own connection
    with KVStore(db_path, journal_mode=JOURNAL_WAL, busy_timeout=5000) as db:
        db[f"key_{worker_id}".encode()] = b"value"

threads = [threading.Thread(target=worker, args=("mydb.db", i)) for i in range(4)]
for t in threads: t.start()
for t in threads: t.join()

Commercial Support

Using SNKV in a product? Paid help is available from the author:

  • Priority fixes and support: your bug or question goes first, with a response time agreed up front.
  • Builds for your device: SNKV tuned for your RAM, flash and RTOS (cache size, Argon2 cost, threading off), tested on your target.
  • Integration and review: help designing your storage layer, migrating from SQLite or another store, or reviewing how you use SNKV.
  • Custom features: a feature your product needs, developed and maintained in SNKV.

Contact: Discord or open an issue titled "Commercial support".


Third-Party Licenses

The snkv Python package embeds the following third-party libraries compiled into its native extension:

Library Version License Notes
SQLite 3.x (amalgamation subset) Public Domain B-tree, pager, WAL, OS layer
Monocypher 4.x CC0-1.0 (Public Domain) XChaCha20-Poly1305 + Argon2id
usearch 2.24 (header-only subset) Apache 2.0 HNSW vector index

SQLite, Monocypher and usearch are statically linked into the extension module — no separate installation required.

SQLite and Monocypher are public domain — no attribution is legally required, but credit is given here in the spirit of good practice. usearch is Apache 2.0, the same license as SNKV.


License

Apache License 2.0 © 2025 Hash Anu

Metadata

Release files for snkv 0.9.0

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

Source distribution (sdist)

Source distribution for snkv 0.9.0
File Size Uploaded Provenance Actions
snkv-0.9.0.tar.gz 1.1 MB With provenance Details for snkv-0.9.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for snkv 0.9.0
File Actions
snkv-0.9.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for snkv-0.9.0-cp313-cp313-win_amd64.whl
snkv-0.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for snkv-0.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
snkv-0.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ ARM64 Details for snkv-0.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
snkv-0.9.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for snkv-0.9.0-cp313-cp313-macosx_11_0_arm64.whl
snkv-0.9.0-cp313-cp313-macosx_10_13_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.13+ x86-64 Details for snkv-0.9.0-cp313-cp313-macosx_10_13_x86_64.whl
snkv-0.9.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for snkv-0.9.0-cp312-cp312-win_amd64.whl
snkv-0.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for snkv-0.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
snkv-0.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details for snkv-0.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
snkv-0.9.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for snkv-0.9.0-cp312-cp312-macosx_11_0_arm64.whl
snkv-0.9.0-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details for snkv-0.9.0-cp312-cp312-macosx_10_13_x86_64.whl
snkv-0.9.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for snkv-0.9.0-cp311-cp311-win_amd64.whl
snkv-0.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for snkv-0.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
snkv-0.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details for snkv-0.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
snkv-0.9.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for snkv-0.9.0-cp311-cp311-macosx_11_0_arm64.whl
snkv-0.9.0-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details for snkv-0.9.0-cp311-cp311-macosx_10_9_x86_64.whl
snkv-0.9.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for snkv-0.9.0-cp310-cp310-win_amd64.whl
snkv-0.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for snkv-0.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
snkv-0.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details for snkv-0.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
snkv-0.9.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for snkv-0.9.0-cp310-cp310-macosx_11_0_arm64.whl
snkv-0.9.0-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for snkv-0.9.0-cp310-cp310-macosx_10_9_x86_64.whl
snkv-0.9.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for snkv-0.9.0-cp39-cp39-win_amd64.whl
snkv-0.9.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for snkv-0.9.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
snkv-0.9.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details for snkv-0.9.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
snkv-0.9.0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for snkv-0.9.0-cp39-cp39-macosx_11_0_arm64.whl
snkv-0.9.0-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details for snkv-0.9.0-cp39-cp39-macosx_10_9_x86_64.whl
snkv-0.9.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for snkv-0.9.0-cp38-cp38-win_amd64.whl
snkv-0.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for snkv-0.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
snkv-0.9.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ ARM64 Details for snkv-0.9.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
snkv-0.9.0-cp38-cp38-macosx_11_0_arm64.whl CPython 3.8 CPython 3.8 macOS 11.0+ ARM64 Details for snkv-0.9.0-cp38-cp38-macosx_11_0_arm64.whl
snkv-0.9.0-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details for snkv-0.9.0-cp38-cp38-macosx_10_9_x86_64.whl

Total release size: 26.4 MB

Release files / snkv-0.9.0.tar.gz

Download URL snkv-0.9.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
eb2d1cd90028b1ecacb06d91832bb3160cee1431f61fad955a7fe35968c8d81f
BLAKE2b-256 checksum
How to use checksums
d750a08591c8cc71cc88a796f7e5911a92aa3dce0955aedb5f775d03ee8c9305
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp313-cp313-win_amd64.whl

Download URL snkv-0.9.0-cp313-cp313-win_amd64.whl
Size 305.0 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
d404ae314ed197ad4d453f11b26f524ba0305200fbfdc150d8bfc347f3e9cc63
BLAKE2b-256 checksum
How to use checksums
365cc8d2a80eb93d5cf230f4c9ade16ceffd36c7d58b9d20764bf1d99c9a585a
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL snkv-0.9.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.6 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
30a35449853d307efd6cf729b1fccd47dc79267e81ec3b68701f363523d6862d
BLAKE2b-256 checksum
How to use checksums
fb218936cbe59f7d75763ca102463b3073132c7da4dd5e8d222d5a154440b49b
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL snkv-0.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.6 MB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
e6d33f9c4d7ae77a5ec6de58564b2ffdbe8a9a7e2f554458d79953e2f6a142c8
BLAKE2b-256 checksum
How to use checksums
88ab4fe3e7474be7d3ba4e936df0c926aa4cd366414909a2caa5d8000f8abd6f
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL snkv-0.9.0-cp313-cp313-macosx_11_0_arm64.whl
Size 363.8 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
45335152f6b4577cc482902271ed98a5b1629592fc7f6a72147c25aaeac6c4ae
BLAKE2b-256 checksum
How to use checksums
1b497ceaee6348dbfd3290dae1aceb5d80c23dbbcb38833fff7d75aa57967531
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp313-cp313-macosx_10_13_x86_64.whl

Download URL snkv-0.9.0-cp313-cp313-macosx_10_13_x86_64.whl
Size 364.5 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
73edcf100f7585e5203696e26aabd117040453fdb64a783c3345580029ce8129
BLAKE2b-256 checksum
How to use checksums
6180489f3da78069684e2b20a230f4269157757042d8c0ebf533e14cc7d2957f
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp312-cp312-win_amd64.whl

Download URL snkv-0.9.0-cp312-cp312-win_amd64.whl
Size 305.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
f0bb934a2664e760e8953cf94821ffc8ef9182fff7de70923044ad846c567bc8
BLAKE2b-256 checksum
How to use checksums
832f8408d9c51de84f24454b6037bf546b60d5877618016e00d76e863261a76e
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL snkv-0.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.6 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e355fe754b5d4019da2b0d6fcb5980de4f50b8b98a50bb0d0b6834168dbb1a5e
BLAKE2b-256 checksum
How to use checksums
bec505112fbd209b387fc449c4e24f92c7e685c4e83b83cc1ca1f1bfb75877fd
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL snkv-0.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.6 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
b7b04639cd276f82927529e3163590ce30ba92d73135de1d878739d06bdc524f
BLAKE2b-256 checksum
How to use checksums
7377da79a3aef612b85125d0adf283b71d4c5dbbf3d286a7022d89b91158be4e
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL snkv-0.9.0-cp312-cp312-macosx_11_0_arm64.whl
Size 363.8 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
824ab61cdc099a2e77ffccc5352736c32b0384ade701669f87ec3b2e0bc28a23
BLAKE2b-256 checksum
How to use checksums
e54cc600cb28d014eb712c99b5cf97296b0bf6a2e4aba791698f4b5c5d7680f9
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp312-cp312-macosx_10_13_x86_64.whl

Download URL snkv-0.9.0-cp312-cp312-macosx_10_13_x86_64.whl
Size 364.5 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
bc07e159a6fa261781b5333d16bc192d67ce92ccf07d5d5eeea679bb34274cf9
BLAKE2b-256 checksum
How to use checksums
ef01225605a9577aa7b72736d21db96a63d7f40c572c63cb585a68a61765d7a2
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp311-cp311-win_amd64.whl

Download URL snkv-0.9.0-cp311-cp311-win_amd64.whl
Size 304.8 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
0fa745e866797e710d2fe6b7a70462de89c0b72967d4a8340b65cdf78391c20f
BLAKE2b-256 checksum
How to use checksums
2dc2297e0f47cbadde09269e3819f7bc3b033b69b1673bc81556a0e9de0d0456
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL snkv-0.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.6 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
fa0613d3d8800876a2cbd35ffb22fe99ad77d7b048068b354c658deb8c260458
BLAKE2b-256 checksum
How to use checksums
f130fd6049c1e559d577e28fe99a0c398c8e80c03931f34e624ceade0a38053c
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL snkv-0.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.6 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
be0f236a295252f395b3b40aaeed0a446b68ea7641197acba2e5fca6b020a121
BLAKE2b-256 checksum
How to use checksums
9bd2d8cf1ed9b4cac671a08ed97cc505a722a7f5f56a19478657e0b426c81c57
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL snkv-0.9.0-cp311-cp311-macosx_11_0_arm64.whl
Size 363.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d0ad91fd18cf708c508ac7930759a8704abc823da8e28bd540d3f8434c8a41e6
BLAKE2b-256 checksum
How to use checksums
e774245e9f7a67f5949eb141b83c19834bf923ead665956ab009095e6867bf05
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp311-cp311-macosx_10_9_x86_64.whl

Download URL snkv-0.9.0-cp311-cp311-macosx_10_9_x86_64.whl
Size 363.1 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
3767e48565c0364918c76de60fe7f45972d9c4c1d8714f2fff91a3ad2f6f6451
BLAKE2b-256 checksum
How to use checksums
43bf1a6672e13d7d48ed46966761d5952fddc8ad4c195966f99f6bdf6f738541
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp310-cp310-win_amd64.whl

Download URL snkv-0.9.0-cp310-cp310-win_amd64.whl
Size 304.8 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
93e8680b5357ae9de745e8e3d145f8e438c169a8694409d469a765c39745520f
BLAKE2b-256 checksum
How to use checksums
b5ea99fd0604e311b2e5f61a0ca28689d080eb71732b8574c9264cf45d7bab79
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL snkv-0.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0fad1eca29477175bcd5d480d0c674280870e3a6460fbb15d54685e64ae5e4c5
BLAKE2b-256 checksum
How to use checksums
868db5057514bc461947dc455e01cd7135227d53d2b959d042797641f2e110b9
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL snkv-0.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.6 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
05ed918869c02f3ca13e15c6e755b78a1adcfb22ad47233f27d5ea7244e520be
BLAKE2b-256 checksum
How to use checksums
3f9eba4483623f4ded8277d7154246fe07e95b0c76a8b7c46f7e51fd7161ec51
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL snkv-0.9.0-cp310-cp310-macosx_11_0_arm64.whl
Size 363.7 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c6a26f524fe8980d6118f1ec20219a9892736985cce38ffe6182ecc62ae167e2
BLAKE2b-256 checksum
How to use checksums
84c58ee0286ef218d316ff62fb99ad683ba009f4753382c1ef30c257ab04d629
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp310-cp310-macosx_10_9_x86_64.whl

Download URL snkv-0.9.0-cp310-cp310-macosx_10_9_x86_64.whl
Size 363.2 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
be820e736877a2e101412a32fad170f9098302ef8ab07e9c9b61893c3417e677
BLAKE2b-256 checksum
How to use checksums
dded95c8c4e484f5bcbd308f3018aa496f2b6d7df3f18f3fb71eb330c4eeb2c7
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp39-cp39-win_amd64.whl

Download URL snkv-0.9.0-cp39-cp39-win_amd64.whl
Size 304.9 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
0f12d0f6c2605ed788fd692f1cf8f2e30eb774c8490c96796245d2fc31007d1e
BLAKE2b-256 checksum
How to use checksums
c643e72d029a2420712010e1f83b701f45024f55c947b9879fde5f877bf1717a
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL snkv-0.9.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.6 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
47b09d532ece21ce23341dfeae0aff33762a03638554d848662d0dca84cb44eb
BLAKE2b-256 checksum
How to use checksums
2b27168432a0cf8de39754a6cb94faed27fa6e180e38a57fb486bb99d982c23a
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL snkv-0.9.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.6 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
654618a175e555877fb69fbaf99c6a898cf6da1c0b1d118668571d920923a1b8
BLAKE2b-256 checksum
How to use checksums
ba03c683c004873413159244eccdf1ff3d18b0ed6b029309716acf0d7b2dc278
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp39-cp39-macosx_11_0_arm64.whl

Download URL snkv-0.9.0-cp39-cp39-macosx_11_0_arm64.whl
Size 363.7 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
dadc96317431faa60b809754c1d7319559f52ee8acbf26a82cc54295e9dfa3f0
BLAKE2b-256 checksum
How to use checksums
423829e2a6d072b132072b6d87c5f5925c1b1e812a8c6058f5eca97f9e0d0b54
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp39-cp39-macosx_10_9_x86_64.whl

Download URL snkv-0.9.0-cp39-cp39-macosx_10_9_x86_64.whl
Size 363.2 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
1e802ed6080e8c61d4df2e3ebfc1d768636ac1658dc75fcea06050eee3d464db
BLAKE2b-256 checksum
How to use checksums
a9610f08e8a31b53fde79702a17d31979e9113247902dc35af1102e2aa256089
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp38-cp38-win_amd64.whl

Download URL snkv-0.9.0-cp38-cp38-win_amd64.whl
Size 304.9 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
86217c257613667a82b27b3a2e50e9b27ce9459949c0f4e680064d280de7756c
BLAKE2b-256 checksum
How to use checksums
ac0fa149cf3206a433e33c561f989bbbb415002abef8edc0a8e8cac8dc79f193
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL snkv-0.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.6 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
07eef33a33cc8e28263f99a202f122f83ff8bdc8769d8ebbae40a6f16d626cf8
BLAKE2b-256 checksum
How to use checksums
912ebb57391a95df6f74af5cb536c6bf78cf4b36aae2551aaae14176bb3652ff
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL snkv-0.9.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.6 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
082113d395c9c9f260e7c012e32a0252ba7641797179dc863960125a9eee71ef
BLAKE2b-256 checksum
How to use checksums
8a825b422d42e1d216d083a7cdc2332e3eb1d69fe4b4aceb286626c5b308be09
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp38-cp38-macosx_11_0_arm64.whl

Download URL snkv-0.9.0-cp38-cp38-macosx_11_0_arm64.whl
Size 363.7 kB
Tags CPython 3.8 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d7afc58d9bf08013b9f64e6fdd8070ca30b30d7827fd2f59f3417a7349bb7651
BLAKE2b-256 checksum
How to use checksums
da04e4260d23de2dabb101be8019eb4472801153e44ed7a3d1bd6ab86f11e043
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 8, 2026.

Transparency log

Release files / snkv-0.9.0-cp38-cp38-macosx_10_9_x86_64.whl

Download URL snkv-0.9.0-cp38-cp38-macosx_10_9_x86_64.whl
Size 363.2 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
9846a3d6a9f1d488ec904915a18cfc0f1182db35eaee1465412b107b39592a95
BLAKE2b-256 checksum
How to use checksums
6fb74a3ec9cdb366b5387354eea6b2f2003e6407dfea423e9f6200e368d8f608
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 8, 2026.

Transparency log

Security for snkv 0.9.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.

Full provenance

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

Select from 31 files

Attestation for snkv-0.9.0.tar.gz

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 8, 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.

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