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.
Vector search
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.
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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| warm_python-0.6.4.tar.gz | 3.4 MB | With provenance | Details for warm_python-0.6.4.tar.gz |
Built distributions (wheels)
Total release size: 27.2 MB
Release files / warm_python-0.6.4.tar.gz
| Download URL | warm_python-0.6.4.tar.gz |
|---|---|
| Size | 3.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd79d21b2ecec6ebb4e16f9547022c7394bd2225c6e6f8f2cffac46f7f6e760a
|
|
BLAKE2b-256 checksum How to use checksums |
0b499575bd4ef7df1315dcc8b7291f8a82d8fc8fe385db68ce6c4f992b63f6ad
|
| 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 Oct 31, 2026.
Transparency logRelease files / warm_python-0.6.4-cp39-abi3-win_amd64.whl
| Download URL | warm_python-0.6.4-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4736d85da917cfe7cb16dfd434331d7c9c990b3225a3e7c50ffefb8eca4642e9
|
|
BLAKE2b-256 checksum How to use checksums |
f3516cc87d2ebb23056fdcaf8ed832f40cb6c4fa1904d8a35b4f2abb73d5ea26
|
| 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 Oct 31, 2026.
Transparency logRelease files / warm_python-0.6.4-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | warm_python-0.6.4-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 |
f1fa7705be43afb13ac1e1a75beba6b1e3b643fe26fbce3fd200d5595ea6ca2e
|
|
BLAKE2b-256 checksum How to use checksums |
425733476346e84927f3d38a4157ade07e22586d598d8fafb026232cc72f3c7a
|
| 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 Oct 31, 2026.
Transparency logRelease files / warm_python-0.6.4-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | warm_python-0.6.4-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
b90da2035b90b5bf30179a5af30d2826a35d18e54d80105e13b2b173c56f2b12
|
|
BLAKE2b-256 checksum How to use checksums |
da84039b3f7a40b1c9dc3fdc65a2ab5431678ea72f16e103bb58d4580f202bd9
|
| 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 Oct 31, 2026.
Transparency logRelease files / warm_python-0.6.4-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | warm_python-0.6.4-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 3.4 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
5ab6eebff6b2337e522d39959392b6f61e382ae56964fc45b162bf99d0e28d3e
|
|
BLAKE2b-256 checksum How to use checksums |
1ae87fe413a914131bd09699bae779c3d1adfaa5423bf7c8bc7654aae05689f9
|
| 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 Oct 31, 2026.
Transparency logRelease files / warm_python-0.6.4-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | warm_python-0.6.4-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
6f2985f6c054952498f591dd368106a59e1b5dfe964015458218c4370fe4309d
|
|
BLAKE2b-256 checksum How to use checksums |
d60eb5fe0c9d707dfa525d637ed9789f5c01961f0940197bd454ce9ae3e6623d
|
| 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 Oct 31, 2026.
Transparency logRelease files / warm_python-0.6.4-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | warm_python-0.6.4-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 |
12cea5c4ec73ada60533e6d31c6153b83a4d67975a7429715e6c2de45f9b2259
|
|
BLAKE2b-256 checksum How to use checksums |
57291beb0d4fc90ff4630441f644bc5837d4f563e134207193c37e03d826b210
|
| 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 Oct 31, 2026.
Transparency logRelease files / warm_python-0.6.4-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | warm_python-0.6.4-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
2664422c96cfe09f12ecc337acfe3b263734e8e04e6f245c1fe6a363867f5db4
|
|
BLAKE2b-256 checksum How to use checksums |
88b4f255231d97d67b219038cb110be85efbd37d6b19e7c2e6890a14a8296426
|
| 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 Oct 31, 2026.
Transparency logSecurity for warm-python 0.6.4
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.
Attestation for warm_python-0.6.4.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 Oct 31, 2026.
Transparency logA 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.