Skip to main content

WARM logo

WARM for Python

Native Python bindings for WARM's vector search and vector-symbolic algebra.

Website · Documentation · Source · License


Install

Python 3.9 or newer is required. Install the native binding and NumPy for the vector-index API:

uv add warm-python numpy

The distribution is named warm-python; the import is writerslogic_warm.

For the pinned default embedding model with no first-use download, install warm-python[embed]. That extra adds the separate warm-models wheel.

VectorIndex builds an approximate nearest-neighbor index over vectors you supply. It supports angular, Euclidean, and inner-product search. The returned IDs are row numbers in the input matrix.

import numpy as np
from writerslogic_warm import VectorIndex

vectors = np.random.default_rng(7).normal(size=(128, 32)).astype(np.float32)
index = VectorIndex("angular", degree=16, build_ef=64)
index.fit(vectors)
index.set_query_arguments(ef=64, rerank=32)
matches = index.query(vectors[0], 5)
print(matches.tolist())

The binding also provides UpdatableIndex for inserts and deletes, FilteredIndex for restricted searches, and SparseIndex for sparse vectors.

index.save(path) persists a VectorIndex; index.load(path) reads it into private memory. Use the same metric and direct_ip setting when loading. On Linux, source builds after 4299b539 also support index.load(path, shared=True) for an immutable memfd snapshot. The loader requires F_SEAL_WRITE, F_SEAL_SHRINK and F_SEAL_GROW; ordinary files and F_SEAL_FUTURE_WRITE alone are rejected. Each worker must open the same snapshot inode to share physical pages. A loaded mapping remains valid after its publishing descriptor closes. The normal private-memory load remains the default on every platform.

sealed_index_run.py shows how a publisher copies an index once, seals it, keeps it available while worker processes run, and records the snapshot hash and setup time. This option is not in the published warm-python==0.6.4 wheel used by the VectorDBBench entry.

With the [embed] extra, the pinned default text embedding model is available offline:

from writerslogic_warm import Embedder

embedder = Embedder(offline=True)
print(len(embedder.embed_query("Where is my note?")))

Phase-vector algebra

PhaseHVec supports deterministic phase-vector binding, unbinding, bundling, and similarity.

from writerslogic_warm import PhaseHVec

key = PhaseHVec.random(1024, 64, seed=1)
value = PhaseHVec.random(1024, 64, seed=2)
stored = key.bind(value)
assert stored.unbind(key).phases() == value.phases()

resonator_factorize searches codebooks for factors of a bound phase vector.

Phase vectors in bundles and factor codebooks must match the composite's dimension and resolution. Invalid shapes and resource limits raise ValueError. Empty factor codebooks are rejected; an empty list of factors returns []. Zero dimensions and zero iterations retain the Rust API's behavior.

The Python boundary admits at most 65,536 dimensions, 65,536 input vectors, and 4,194,304 total phase elements per operation. Resonators additionally allow at most 64 factors, 1,000 iterations, and 100,000,000 estimated component visits, computed as (3 * entries + factors**2) * max(dimensions, 1) * (iterations + 1) before cloning codebooks or allocating the resonator index.

Choosing the right Python package

This native binding runs vector search and phase-vector operations in your Python process. It does not expose the persistent document-search and agent-memory APIs. For an HTTP client to warm-server, use warm-sdk. The Rust and Node.js packages expose the full embedded engine.

Metadata

Release files for warm-python 0.6.8

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

Source distribution (sdist)

Source distribution for warm-python 0.6.8
File Size Uploaded Provenance Actions
warm_python-0.6.8.tar.gz 3.8 MB With provenance Details for warm_python-0.6.8.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for warm-python 0.6.8
File Actions
warm_python-0.6.8-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for warm_python-0.6.8-cp39-abi3-win_amd64.whl
warm_python-0.6.8-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details for warm_python-0.6.8-cp39-abi3-musllinux_1_2_x86_64.whl
warm_python-0.6.8-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details for warm_python-0.6.8-cp39-abi3-musllinux_1_2_aarch64.whl
warm_python-0.6.8-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for warm_python-0.6.8-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
warm_python-0.6.8-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for warm_python-0.6.8-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
warm_python-0.6.8-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for warm_python-0.6.8-cp39-abi3-macosx_11_0_arm64.whl
warm_python-0.6.8-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for warm_python-0.6.8-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 27.9 MB

Release files / warm_python-0.6.8.tar.gz

Download URL warm_python-0.6.8.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
68e9aa1800eeb49f3429e2ae7adac127d32df4364a638454e91e657623ffa833
BLAKE2b-256 checksum
How to use checksums
3acefaf16dbe3c16072c4f2e38ffd9432bcabf76ff46ab4b09abd98e5b470da2
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 11, 2026.

Transparency log

Release files / warm_python-0.6.8-cp39-abi3-win_amd64.whl

Download URL warm_python-0.6.8-cp39-abi3-win_amd64.whl
Size 3.3 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6eefdc4936c2b1eb494c84e9e70f4983c18bb27ce58fec7aa2920db60c8fb8ca
BLAKE2b-256 checksum
How to use checksums
d2446f2ac135f24cc1a79cac7512bb94eb36c83495ff21bc44c855cdf5529255
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 11, 2026.

Transparency log

Release files / warm_python-0.6.8-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL warm_python-0.6.8-cp39-abi3-musllinux_1_2_x86_64.whl
Size 3.7 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
ac27b52b2a5de18ea6792adaf578d5ebfdd89dcdfcf8f026ab010109f22decb9
BLAKE2b-256 checksum
How to use checksums
16b86f3155bdf16d2b737ca4d8e029372be7d558ff5da67830d6c0546245b49f
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 11, 2026.

Transparency log

Release files / warm_python-0.6.8-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL warm_python-0.6.8-cp39-abi3-musllinux_1_2_aarch64.whl
Size 3.6 MB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
c0c87089b899144c1a120af5d2e89dcad22000446736c67c3ff3f9a641c66807
BLAKE2b-256 checksum
How to use checksums
58edd45f1db29a0b4b84a0d7d29f4fc506c40f7bb88f84d86071270a20d86296
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 11, 2026.

Transparency log

Release files / warm_python-0.6.8-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL warm_python-0.6.8-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 3.5 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
2f76b95032796c68eb2ad2c6834cdf18c0233773833bbd9f0e2f5d4170a13010
BLAKE2b-256 checksum
How to use checksums
ee2b651fd2933854fc00f0b9bae973bb7f0718c3a56b0843c7774f86c30fc1ee
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 11, 2026.

Transparency log

Release files / warm_python-0.6.8-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL warm_python-0.6.8-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 3.4 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
449ba8ad70ae37f96da064a03088321d583a225ed5c642e8054506885f93390e
BLAKE2b-256 checksum
How to use checksums
ea29c38e766693baa8fcfd5bea62cffa33143662cbb947c765f30e8c98af0bf9
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 11, 2026.

Transparency log

Release files / warm_python-0.6.8-cp39-abi3-macosx_11_0_arm64.whl

Download URL warm_python-0.6.8-cp39-abi3-macosx_11_0_arm64.whl
Size 3.2 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3fe85e4dca5a2c61cbced0034aae788c0caaa33ec4a5626f44a687cf9b4e9fe9
BLAKE2b-256 checksum
How to use checksums
ebbace8296eea2b80ba1d1e26439cb9ae77d7d6bb6da47ee63a8394ec4e78df5
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 11, 2026.

Transparency log

Release files / warm_python-0.6.8-cp39-abi3-macosx_10_12_x86_64.whl

Download URL warm_python-0.6.8-cp39-abi3-macosx_10_12_x86_64.whl
Size 3.4 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2667253e201a4f29019da02f0f1840e6fb4343d5d127e6d68d79a432527baac8
BLAKE2b-256 checksum
How to use checksums
0ed99d7f33240768efae38ee8268cd0c1d810b76b9f3526c812179c592e666b9
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 11, 2026.

Transparency log

Security for warm-python 0.6.8

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 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for warm_python-0.6.8.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 11, 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