Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

warm-python

Latest version: v0.7.2

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
PyPI package Publisher: dcondrey
28 Stars
9 Forks
6 Versions
1.5K Downloads
Rust Repo language

Scan summary

warm-python was last scanned on 25 Nov 2026 at version 0.7.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest 3 were published within 7 days (19–25 Nov 2026).
  • Findings: No rules fired in version 0.7.2.
  • Downloads: 1,480 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.7.2 LATEST 25 Nov 2026 No rules fired
0.7.1 24 Nov 2026 No rules fired
0.7.0 19 Nov 2026 No rules fired
0.6.8 11 Nov 2026 Not shown
0.6.6 9 Nov 2026 Not shown

No rules fired in 0.7.2

Findings

Findings for v0.7.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.7.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

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; NumPy (>=1.26, which the vector-index API needs) is installed with it:

uv init   # only outside an existing uv project
uv add warm-python

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.

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

Document search and memory

Warm is the in-process engine: a persistent store with hybrid BM25 and exact-cosine document search, the memory API and vector search. Requests and results are dicts and lists with the camelCase fields of the Node binding. One process may write a store at a time.

Warm ships in warm-python 0.7.2 and later; the earlier 0.6.8 wheel does not have it.

from writerslogic_warm import Warm

store = Warm(16384, "./warm-data")
store.memorize_document({"id": "a", "text": "The harbor opens at six in the morning."})
print(store.search_documents("when does the harbor open", {"k": 3})[0]["documentId"])

store.remember({"text": "Ada prefers tea", "subject": "ada"})
print(store.recall("what does Ada drink")["results"][0]["text"])
Hybrid recall

Recall is lexical (BM25) until the store has vectors. Give it vectors one of two ways and recall blends BM25 with exact cosine by default:

from writerslogic_warm import Embedder, Warm

# The engine embeds facts and queries itself (local embedding model).
store = Warm(16384, "./warm-data", embedder=Embedder())
store.remember({"text": "Ada prefers tea", "subject": "ada"})
store.recall("what does Ada drink")                       # hybrid

# Or supply the vectors: declare the space, then pass `embedding` on remember and recall.
vector = query_vector = [1.0] * 384   # your model's output
store = Warm(16384, "./warm-ext", embedding_dimensions=384)
store.remember({"text": "Ada prefers tea", "embedding": vector})
store.recall("what does Ada drink", {"embedding": query_vector})

embedding takes a list or a numpy array of exactly the store's dimensions with finite values and not all zeros; anything else is a ValueError naming the problem. A recall with no embedding on a store with no embedder ranks lexically, bit-for-bit as before. {"semanticWeight": 0} forces lexical ranking on a store that has vectors, and {"fusion": "rrf"} selects reciprocal-rank fusion instead of the default blend. A store is reopened with the same embedder or embedding_dimensions.

memorize_vector(id, vector) and query_vector(vector, k) use the vertex graph index; query_vector returns (id, cosine) pairs.

Choosing the right Python package

This native binding runs the engine in your Python process: document search, the memory API, vector search and phase-vector operations. For an HTTP client to warm-server, use warm-sdk.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases warm-python

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229