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.

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.6

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.6
File Size Uploaded Provenance Actions
warm_python-0.6.6.tar.gz 3.8 MB With provenance Details for warm_python-0.6.6.tar.gz

Built distributions (wheels)

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

Total release size: 27.6 MB

Release files / warm_python-0.6.6.tar.gz

Download URL warm_python-0.6.6.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
38805db2b54e0c6a4e8fbf8c7035e531a5ec0ed01c9fe96100e78f206b3a2217
BLAKE2b-256 checksum
How to use checksums
3738e61aba876ebb29812e9711596b1be60c02acbb5caab246bf8b7ccd5c9114
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 9, 2026.

Transparency log

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

Download URL warm_python-0.6.6-cp39-abi3-win_amd64.whl
Size 3.3 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f3a2139b13cf8ab6dbdf0754edd16bd65af5649d184d7b5c7f9994ff1e94fa6c
BLAKE2b-256 checksum
How to use checksums
169df235c487d478d17f5e0e899715f8b36a3673fd06ce1ae1b84fbd2a84af55
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 9, 2026.

Transparency log

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

Download URL warm_python-0.6.6-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
e7760cf6741ccae4cb949cf574acfc543490ad4d3f2149713ef3f01adef8ae20
BLAKE2b-256 checksum
How to use checksums
b9bc91e15723f4be1147df558904a576012fa527e37f75958cf51bd889cd495d
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 9, 2026.

Transparency log

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

Download URL warm_python-0.6.6-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
656d3d4bcb9e5e0ac0f1b7d1039120023429479c3344b891a75a250d51955a0f
BLAKE2b-256 checksum
How to use checksums
58ddfffe35049506fc4666d000730d26810cac5ae7ab49278526a489c5a654eb
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 9, 2026.

Transparency log

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

Download URL warm_python-0.6.6-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
018f7b1bbc800e90d793c348177ba8241ddda92419c9b3d64e279c927eb25cad
BLAKE2b-256 checksum
How to use checksums
791d2a44ff08da9509dc7b5e7b820eebe6342a515678869bb5175b051b85c189
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 9, 2026.

Transparency log

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

Download URL warm_python-0.6.6-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
b30cb67e57e07076232ecab98d2880b932bd1c351de0b5d600c1e1661eee8e09
BLAKE2b-256 checksum
How to use checksums
deacf1772286c25863e0b67d782075e9c47f4091a7876e0bcbeaf5c65ea23dc4
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 9, 2026.

Transparency log

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

Download URL warm_python-0.6.6-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
2004c4f6e463da8713041145a7c0b9d22ec683331c200452d3a7a9276ad89645
BLAKE2b-256 checksum
How to use checksums
f7ce624c6f276062fc0a64013e7ed91acbacca50d3897d8a1d1f3c611d91dcfa
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 9, 2026.

Transparency log

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

Download URL warm_python-0.6.6-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
5dec69d40503ac418bccd895fc40ba34d096f369930b13e47d9f71e79b16a7d4
BLAKE2b-256 checksum
How to use checksums
03a459194889d750b8fa6c60abb8d396a6f4552d8bd4c5533fe015f67f394408
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 9, 2026.

Transparency log

Security for warm-python 0.6.6

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.6.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 9, 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