Skip to main content

lexindex

PyPI Python crates.io CI Docs License: MIT DOI Sponsor

Compact, immutable string ↔ id indexes for huge catalogs, with a Rust core, Python bindings and a C ABI. Build once over a set of strings — entity names, document keys, vocabulary terms, cluster labels — persist a flat blob, and query it many times, memory-mapped where the structure allows. Pairs with betula-cluster (string ids ↔ cluster ids, both ways) but stands on its own.

lexindex against the smallest trie anyone else built, on thirteen corpora at a million keys: smaller on all thirteen

Thirteen corpora at a million keys against MARISA, XCDAT, CoCo-trie, PDT and the C² benchmark's structures at the configurations the campaign times, and MARISA at its smallest — 1 to 32 tries under the tiny cache, untimed. The protocol, the ten-million-key table and every other structure are in the benchmarks. The figure is the size axis: lexindex's smallest index wins it on all thirteen by file, by 3.5 % on paths, where the opt-in labels=True build takes it, and on all thirteen once both are mapped, by 2.9 % there; a mapped DictIndex also holds the 0.02–0.29 bytes a key of tables it derives at load, counted beside MARISA's. On the latency axis HashedDictIndex wins outright: the same dictionary with its id answered by a perfect hash is 4.0× to 8.6× faster than XCDAT 15, the fastest trie measured, in a free loop, 1.7× to 3.7× when each lookup waits on the last, and 1.4× to 3.2× smaller, on all thirteen corpora at a million keys and all six at ten million, through id_unchecked, which takes a key's membership on trust — and 2.9× to 7.0× faster (1.6× to 3.6× chained) and 1.2× to 2.8× smaller through id with an 8-bit fingerprint that turns away all but one stranger in 256. Every column is in the benchmarks, and none is quoted here without the others; every loss measured so far is listed in one place.

Seven indexes

StringIndex DictIndex HashedDictIndex CompactHashIndex ClosedHashIndex PerfectHashIndex DoubleArrayIndex
string → id ✅ ✅ ✅ ✅ ✅ ✅ ✅
id → string ✅ ✅ ✅ — — ✅ —
ordered ids, ranges, lower_bound ✅ ✅ ✅ — — — ids only ³
prefix ✅ ✅ ✅ — — — —
common prefix · longest prefix ✅ ✅ ✅ — — — ✅ · every occurrence in a text
fuzzy · subsequence ✅ — — — — — —
membership exact exact 2^-bits false positives ² 2^-bits false positives none: closed vocabulary exact exact
Overlay edits ✅ — — ✅ — ✅ —
zero-copy load_mmap ✅ ✅ ¹ ✅ ¹ ✅ — ✅ ✅
bytes/key, 480 k English words 5.95 2.62 5.24 · 6.24 at 8 bits 1.24 · 0.74 at 4 bits 0.24 9.25 24.42 · 15.62 on jieba's Chinese lexicon
id, 1 M word bigrams 256 ns 383 ns 82 ns · id_unchecked 71 68 ns the bare perfect hash 107 ns · id_unchecked 56 221 ns
Cargo feature — — mph mph (default) mph mph —

¹ DictIndex maps every section and builds in memory what a lookup reads on every call: the per-block samples — eight bytes a block, one byte per thirty-two keys at the default block — the symbol tables, and where they apply a character code's tables and a trie over blocks whose samples tie; 0.04–0.35 bytes a key at a million keys. HashedDictIndex maps its dictionary the same way and its rank table whole. ² At zero fingerprint bits id is the dictionary's own search, exact and at its cost, and the hash is id_unchecked, which answers a stranger with some rank below n. ³ The ids are the keys' ranks, the ones StringIndex and DictIndex give the same keys, so either of them turns an id back into its key.

  • StringIndex — an ordered index that is the finite-state transducer (fst) alone: exact string ↔ id, prefix, common prefix (the keys a query starts with, in one walk), range, predecessor / successor, fuzzy (bounded Levenshtein distance), subsequence and lazy in-order iteration, all automata over the FST with no key list to scan. Autocomplete, fuzzy search, ordered browse. For an exact string ↔ id and nothing else, HashedDictIndex is faster and DictIndex smaller (the table above); for matching a lexicon against text, DoubleArrayIndex.
  • DictIndex — an ordered dictionary with the key stored for every id: string ↔ rank both ways, lower_bound, prefix, common_prefix, range, in-order iteration — no automata, so no fuzzy. The sorted keys front-coded in blocks of 256, each cut into microblocks of 16, the suffixes coded per shard under a symbol table or a packed alphabet — whichever that shard's own bytes prefer — over a phrase dictionary mined from the whole blob where repeated spans pay for it: 2.62 bytes/key, 56 % below StringIndex, id 280–293 ns against its 168–181 — 216–230 after route_microblocks() — and key_into 194–195 against its key at 453–466. A prefix is a range here, not an automaton walk, so prefix_count is two order lookups — 380 ns where marisa-trie must enumerate every match to count it (118 176). Every block from 32 to 1024 comes in under every marisa-trie setting measured on this corpus — 2.84 down to 2.50 against its 2.96–3.07. Over the eleven-corpus sweep at a million keys it is the smaller of the two on all eleven, against marisa's best setting on each and not its default — marisa larger by 4.4 % on titles-en up to 78 % on dna, and on paths by 3.8 % once the opt-in labels=True build is taken. At those same settings it answers faster on ten of them, 1.7–6.5×. Exact queries, every id back to its key, small.
  • HashedDictIndex — a DictIndex whose id is a hash: the dictionary kept whole, and beside it a minimal perfect hash and a table holding each key's rank at its slot, so id is a hash and a read where the dictionary searches, while key(id), prefix, range and iteration are the dictionary's own, on the same ids. Against XCDAT, the fastest trie measured, over thirteen corpora at a million keys and six at ten million: 4.0–8.6× faster in a free loop, 1.7–3.7× when each lookup waits on the last, and 1.4–3.2× smaller through id_unchecked, for 2.62 bytes a key over the dictionary on real words, and 2.9–7.0× faster (1.6–3.6× chained) and 1.2–2.8× smaller through id with an 8-bit fingerprint — a byte a key more — that turns away all but one stranger in 256. The dictionary's queries, and a hash's id.
  • CompactHashIndex — the smallest string → dense id map that can reject a non-member: an in-crate minimal perfect hash plus a fingerprint per key, no keys stored. 1.24 bytes/key on real words — 2.4× below marisa-trie — and 0.74 at a 4-bit fingerprint (6.25 % false positives), for probabilistic membership (about 2^-bits) and no reverse lookup. Footprint first, a rare false positive acceptable.
  • ClosedHashIndex — the perfect hash and nothing else: id(key) -> u32, no Option — a member's id, and some id in [0, n) for anything else. 0.24 bytes/key, a fifth of CompactHashIndex, and a lookup at id_unchecked's cost (19.5 ns on the dictionary, against 24.0 for the fingerprint-checked id). A token → id map where every query is a member by construction.
  • PerfectHashIndex — the perfect hash with the keys stored: verified membership and id → key, no ordering. id_unchecked skips the compare and runs 4.2× as fast as std::HashMap; fingerprints=True adds one byte per key so an absent key stops after one cache miss instead of two (39 → 30 ns on the dictionary) — a stop list, a block list. A fixed-vocabulary token ↔ id map on a hot path.
  • DoubleArrayIndex (4.5) — a character-wise double-array trie for matching a lexicon against running text: the keys a text starts with, the longest of them, and every key occurring anywhere in it, one load a character. A label is a character rather than a byte — a Chinese word of three characters is three steps, not nine — and each eight-byte slot holds everything a step reads, so a match costs no load past the slot that reaches it. Over Chinese text it is the fastest walk measured: every word at every position in 10.6 ns a character against daachorse's 14.8, and a walk a position in 13.0 against crawdad's 15.5 and darts-clone's 27.5 — at 15.62 bytes a word on jieba's 349 045-word lexicon, below every double array measured there (darts-clone and yada 17.75, crawdad 18.40, cedar 60.57 held in memory). The ids are StringIndex's for the same keys; nothing comes back out. Segmentation, gazetteer tagging, a tokenizer's longest match.

All seven assign dense ids in [0, n), build deterministically and serialise to a flat blob: save / load everywhere, zero-copy load_mmap where there is more than the perfect hash to map — DictIndex mapping everything but its per-block samples and a few tables, under 0.4 bytes a key. They are immutable; Overlay adds keys to StringIndex, CompactHashIndex and PerfectHashIndex without a rebuild, removes them by key from the two that store their keys and retires an id on all three, keeps every id stable, and folds the edits into a fresh base with compact(). The other four are absent by design rather than omission: an overlay issues a new key the next id after the base, which is exactly what DictIndex, HashedDictIndex and DoubleArrayIndex cannot accept — their ids are the lexicographic rank, and a key added in the middle of the order would not get one — and ClosedHashIndex has no membership to ask, so there is no "already in the base" for an overlay to test against. CI builds the default features and the fst-only set for 32-bit x86, and the fst-only set and mph alone for wasm32-unknown-unknown (leave mmap off there — nothing to map).

Install

pip install lexindex      # wheels for CPython 3.11+, 3.14t and 3.15t+, no runtime dependencies
[dependencies]
lexindex = "5.0"
# fst-only (drop the memory-mapping and perfect-hash code):
# lexindex = { version = "5.0", default-features = false }

Python

from lexindex import (
    ClosedHashIndex, CompactHashIndex, DictIndex, DoubleArrayIndex, HashedDictIndex, PerfectHashIndex, StringIndex,
)

idx = StringIndex(["apple", "apricot", "banana", "cherry"])
idx.id("banana")             # 2  (sorted rank)
idx.key(0)                   # "apple"  — reconstructed from the FST, no stored reverse map
idx.prefix("ap")             # [("apple", 0), ("apricot", 1)]
idx.fuzzy("aple", 1)         # [("apple", 0)]  — typo-tolerant
idx.successor("ba")          # ("banana", 2)   — nearest key >= query
idx.ids_of(["apple", "x"])   # [0, None]  — batched: one FFI call, not one per key
idx.save("catalog.bix")      # StringIndex.load("catalog.bix") reloads it; load_mmap borrows it zero-copy

c = CompactHashIndex(["GET", "POST", "PUT", "DELETE"])  # 1.24 B/key at scale; fingerprint_bits=4 → 0.74
c.id("POST")                 # dense id in [0, n); probabilistic membership, no id → key
c.id_unchecked("POST")       # fastest lookup for a known-closed vocabulary

z = ClosedHashIndex(["GET", "POST", "PUT", "DELETE"])   # the perfect hash alone, ~0.24 B/key
z.id("POST")                 # a member's id; any other string gets *some* id in [0, n)

w = DictIndex(["GET", "POST", "PUT", "DELETE"])         # ordered, keys stored, ~2.62 B/key
w.id("POST")                 # 2  (sorted rank); w.key(2) == "POST"; w.lower_bound("P") == 2

h = HashedDictIndex.from_dict(w, fingerprint_bits=8)    # w's ranks from a hash, not a search
h.id("POST")                 # 2; h.dict is w, for key, prefix and range

d = PerfectHashIndex(["GET", "POST", "PUT", "DELETE"])  # verified membership and id → key
d.key(d.id("POST"))          # "POST"; d.id("PATCH") is None

t = DoubleArrayIndex(["北京", "北京大学", "大学", "大学生"])  # a character a step, for running text
t.occurrences("北京大学生")   # [(0, 2, 0), (0, 4, 1), (2, 4, 2), (2, 5, 3)] — (start, end, id) in characters
t.longest_prefix("北京大学生")  # ("北京大学", 1)

examples/quickstart.py runs all seven end to end; the usage guide covers every interface, including batched lookups into NumPy and Arrow buffers and free-threaded CPython.

With betula-cluster: the lexindex dense id is the embedding-matrix row, so string id → cluster and cluster → string ids are both one lookup (runnable):

idx = PerfectHashIndex(doc_ids)                  # string id <-> dense [0, n) id
matrix[idx.id(doc_id)] = embedding[doc_id]       # row index == lexindex id
labels = betula_cluster.fit_predict(matrix, n_clusters=k)
cluster = labels[idx.id("doc-00042")]            # string id -> cluster
members = [idx.key(int(r)) for r in (labels == cluster).nonzero()[0]]  # cluster -> string ids

With Polars: lexindex-polars is an expression plugin, so the lookup runs in the engine's own threads, inside a lazy plan and under the streaming engine, without the GIL (the plugin):

import lexindex_polars  # noqa: F401  -- the import registers the namespace

df.with_columns(pl.col("track").lexindex.id("tracks.bdx"))   # and .contains, .key, .id_unchecked

Rust

use lexindex::StringIndex;

fn main() -> Result<(), lexindex::IndexError> {
    let idx = StringIndex::build(["apple", "apricot", "banana", "cherry"])?;
    assert_eq!(idx.id("banana"), Some(2));                  // string → id (sorted rank)
    assert_eq!(idx.key(0).as_deref(), Some("apple"));       // id → string, a rank-walk over the FST

    // prefix / range / fuzzy / subsequence, all lexicographically ordered
    let fruit: Vec<_> = idx.prefix("ap").into_iter().map(|(k, _)| k).collect();
    assert_eq!(fruit, ["apple", "apricot"]);
    let near: Vec<_> = idx.fuzzy("aple", 1)?.into_iter().map(|(k, _)| k).collect();
    assert_eq!(near, ["apple"]);                            // Levenshtein distance ≤ 1
    let sub: Vec<_> = idx.subsequence("ap").into_iter().map(|(k, _)| k).collect();
    assert_eq!(sub, ["apple", "apricot"]);

    // a flat blob: reload it, or borrow it zero-copy from the file
    let path = std::env::temp_dir().join("catalog.bix");
    idx.save(&path)?;
    {
        // SAFETY: nothing may modify the file while a mapped index borrows it (see `load_mmap`).
        let mapped = unsafe { StringIndex::load_mmap(&path) }?; // no read into RAM; pages shared
        assert_eq!(mapped.id("cherry"), Some(3));               // the same answers, off the file
    }                                                           // the mapping ends with its scope
    std::fs::remove_file(&path)?;
    Ok(())
}
use lexindex::{
    ClosedHashIndex, CompactHashIndex, DictIndex, DoubleArrayIndex, HashedDictIndex, PerfectHashIndex,
};

fn main() -> Result<(), lexindex::IndexError> {
    let verbs = ["GET", "POST", "PUT", "DELETE"];

    // The smallest string → id map that rejects strangers: an 8-bit fingerprint per key, 1.24 B/key,
    // ~0.4 % false positives.
    let compact = CompactHashIndex::build_bits(verbs, 8)?;
    let id = compact.id("POST").unwrap();                  // Some(slot); a stranger may rarely read as present
    assert_eq!(compact.id_unchecked("POST"), id);          // no fingerprint check, for a closed vocabulary

    // The perfect hash alone, ~0.24 B/key: a member's id, and *some* id in [0, n) for anything else.
    let closed = ClosedHashIndex::build(verbs)?;
    assert!((closed.id("POST") as usize) < closed.len());

    // Verified membership and id → key, the keys stored; ids survive save / load on every index.
    let exact = PerfectHashIndex::build(verbs)?;
    let id = exact.id("POST").unwrap();
    assert_eq!(exact.key(id), Some("POST"));
    assert_eq!(exact.id("PATCH"), None);
    let path = std::env::temp_dir().join("verbs.bmp");
    exact.save(&path)?;
    assert_eq!(PerfectHashIndex::load(&path)?.id("POST"), Some(id));
    std::fs::remove_file(&path)?;

    // Ordered, the key stored for every id, ~2.62 B/key; prefix and range, no fuzzy.
    let dict = DictIndex::build(verbs)?;
    assert_eq!(dict.id("POST"), Some(2));                  // the sorted rank
    assert_eq!(dict.key(2).as_deref(), Some("POST"));
    assert_eq!(dict.lower_bound("P"), 2);                  // the "P…" keys are ids 2..lower_bound("Q")

    // The same dictionary with a hash sidecar: its ranks from one hash and two reads, not a search.
    let hashed = HashedDictIndex::from_dict(dict, 8)?;
    assert_eq!(hashed.id("POST"), Some(2));
    assert_eq!(hashed.dict().key(2).as_deref(), Some("POST"));

    // A character a step, for matching a lexicon against running text: every key at every position.
    let lexicon = DoubleArrayIndex::build(["北京", "北京大学", "大学", "大学生"])?;
    let mut found = Vec::new();
    lexicon.for_each_occurrence("北京大学生", |start, end, id| found.push((start, end, id)));
    assert_eq!(found, [(0, 6, 0), (0, 12, 1), (6, 12, 2), (6, 15, 3)]); // byte offsets, and the ranks
    Ok(())
}

C

Under the capi feature six of the seven indexes — all but DoubleArrayIndex — are one opaque handle behind fourteen lexindex_* functions, declared in include/lexindex.h:

#include "lexindex.h"

const char *keys[] = {"cherry", "apple", "banana", "apricot"};
size_t lens[] = {6, 5, 6, 7};
LexindexIndex *index = NULL;
lexindex_index_build(LEXINDEX_KIND_DICT, keys, lens, 4, &index);

uint64_t id;
lexindex_index_id(index, "banana", 6, &id);            /* 2 — the sorted rank */
char key[16]; size_t len;
lexindex_index_key(index, 0, key, sizeof key, &len);   /* "apple" */
lexindex_index_free(index);

Every fallible call returns a LexindexStatus, zero on success, with the message behind a failure in lexindex_last_error(). cargo build --release --features capi builds the shared library with the symbols; examples/capi.c walks the whole surface and usage has the rules.

Design notes

One line each; the sections are in the design notes.

  • StringIndex is the FST alone. id → key is a rank-walk over the automaton, so the blob is [magic "BIX4"][fst] and there is no reverse map to store or keep in sync.
  • DictIndex is front coding under a symbol table. Blocks of 256 sorted keys, the first whole, cut into microblocks of 16 to 32 whose first keys are coded against each other and the rest against their predecessors as (shared-prefix length, suffix) — one byte a header, the headers of a run before its suffixes — the suffixes under a 255-symbol FSST-style table (its own format) trained on the index's own suffixes; a lookup walks the microblock heads to one microblock, rules most of its entries out by the header alone and compares the rest against the probe without decoding them. Keys mostly outside ASCII are first respelled in an order-keeping code of one or two bytes a character (BDX4), which took Chinese and Russian corpora 6.7–17.9 % smaller than 4.2 did, for up to 3 % on id and 4.5 % on ids_of. route_microblocks() (4.4) swaps the walk for a count of eight bytes a microblock — 0.5 B/key at the default block, in memory and in no blob — and takes 15–32 % off id on twelve corpora of thirteen at a million keys, 4 % on paths.
  • HashedDictIndex stores the rank at the perfect hash's slot. One bit-packed value a key, ⌈log2 n⌉ + fingerprint_bits wide, beside the dictionary's own BDX3, BDX4 or BDX5 blob embedded byte for byte: id never reads the dictionary, and nothing ordered reads the hash.
  • CompactHashIndex stores no keys. A minimal perfect hash plus one fingerprint_bits-wide fingerprint per slot from a second, uncorrelated hash — a design rate of about 2^-bits, not a defence against chosen queries. Its build streams 16 bytes per key, never the strings: 302 MB peak at 100 M keys against 8.8 GB for a list, 0.94 GB at 10⁹, as of 2026-09-10.
  • ClosedHashIndex is that perfect hash alone — the same slot CompactHashIndex::id_unchecked gives, with a signature that says nothing can tell a member from a stranger.
  • PerfectHashIndex verifies every hit against the stored key. The pair in a billion that collides in the 64-bit hash is served, still exactly, from a side table the hot path never reads.
  • DoubleArrayIndex numbers characters by frequency. A label is a character's rank in the lexicon, 1 for the most frequent, read from a table indexed by code point; bases are unique, so the label a slot holds settles a step. Every row sits at the lowest base where it fits, the widest first, a wide row inside a window under the top once single children are left to fill the holes below, which keeps a build linear: 74 % of the slots are used on jieba's lexicon, 98 % on English words.
  • Keys are bytes. No Unicode normalisation, case folding or collation: normalise (NFC/NFKC, casefold) before building and before querying if the application needs it.
  • Every build is deterministic. The same keys give the same blob, byte for byte, on any machine and thread count — within one version; ids are arbitrary and change whenever the key set does, so persist the blob rather than re-derive it.
  • Loading is safe; mapping is unsafe. from_bytes and load take arbitrary bytes on every index — the reason the perfect hash is in-crate — and a crafted blob answers wrong ids, never out-of-range ones. load_mmap and its _verified / _untrusted forms borrow the mapped pages, so the file must not change while the index is alive.
  • Blobs move forward, not backward. 2.0 replaced the key hash (the previous one had a two-word collision family on ordinary text) and 4.0 replaced it again (branch-free over the key's length, half the time on real words), so every hash blob written before 4.0 (BMP5–BMP7, BCH6, BCH7, BCL1) is refused by name and rebuilt from the keys, as is every dictionary blob before BDX3 (BDX1, BDX2), which 4.0 rewrote a third smaller; BIX4 crosses the versions unchanged, and an OVL2 does when its base is one — an overlay embeds its base, so one over an older hash blob is refused with it. 5.0 replaced the hash once more (128 bits of state on every path), so 4.x's BMP8, BHD1 go through 4.x's lexindex dump into this version's lexindex build, and BCH8, BCL2, which store no keys, are rebuilt from their corpus.
  • --no-default-features is fst only (StringIndex, DictIndex, DoubleArrayIndex, Overlay); mph adds no dependency, so the whole tree is fst plus memmap2, and cargo audit reports nothing on either.

Benchmarks

Serialised size on real English words

python bench/compare.py on /usr/share/dict/words (479 823 words, 9.3 B/key raw). Keys are a real vocabulary, never a synthetic entity-{i} sequence — sequential keys collapse the FST to a near-regular automaton and report a misleading ~0 B/key, so the benchmark refuses them. Smaller is better; the capability columns are why you would still pick a larger one.

library prefix range fuzzy reverse id→str exact membership zero-copy mmap bytes/key ns/lookup
lexindex ClosedHashIndex — — — — none (closed vocabulary) — 0.24 73
lexindex CompactHashIndex (fp=4 bits) — — — — probabilistic ✅ 0.74 77
lexindex CompactHashIndex (fp=1) — — — — probabilistic ✅ 1.24 70
lexindex CompactHashIndex (fp=2) — — — — probabilistic ✅ 2.24 78
lexindex DictIndex (512 per block) ✅ ✅ — ✅ ✅ ✅ 2.51 318
lexindex DictIndex (256 per block, default) ✅ ✅ — ✅ ✅ ✅ 2.62 292
marisa-trie (4 tries, tiny cache — its smallest here) ✅ — — ✅ ✅ ✅ 2.96 455
marisa-trie (default) ✅ — — ✅ ✅ ✅ 2.98 439
marisa-trie (huge cache) ✅ — — ✅ ✅ ✅ 3.07 413
lexindex StringIndex ✅ ✅ ✅ ✅ ✅ ✅ 5.95 182
lexindex HashedDictIndex (fp=8) ✅ ✅ — ✅ probabilistic ✅ 6.24 87
lexindex PerfectHashIndex — — — ✅ ✅ ✅ 9.25 134
DAWG (dawg2) ✅ — — — ✅ — 23.96 219
datrie ✅ — — — ✅ — 30.91 525
builtin dict — — — — ✅ — — (in RAM only) 281

Generated by bench/compare.py — raw numbers and the machine that produced them: bench/results/compare-2026-11-05-arz-ea82db8.json — every cell's build and lookup samples, the false-positive measurement, the CPU, kernel, rustc, Python and the load average at both ends of the run. ns/lookup is one exact lookup through Python over 100 000 probes, half of them plausible near-misses, shuffled — the counterweight to the size column, since bytes alone read as though the smallest structure were the best one. Every row pays a 44 ns call boundary, which is what the empty loop and call cost in this run, on the performance governor, against 43 on 2026-11-03 and 46–51 in the runs before it; bench/reproduce.sh prints them side by side because that floor has measured 100 in another session, and a column from such a run is only comparable within itself. The builtin dict is in the table because it is the thing being replaced. The four smallest rows are also the fastest, and for the same reason: they store no keys, so a miss is only probably detected and there is no id → key on offer. Fifth is HashedDictIndex, which does keep its keys — its dictionary — and answers id beside them in 87 ns, ahead of every other row that can give a key back and of the builtin dict, for 6.24 bytes a key. The two DictIndex rows are one type at two block sizes; it builds in 66 ms against marisa-trie's 233–236, answers faster than every marisa-trie setting at fewer bytes than any of them, and the larger block trades reverse-lookup latency for the bytes. marisa-trie appears three times for the same reason it has tuning parameters: its own documentation says the right setting depends on the data, so the table carries its compact end, its default and its fast end rather than one point somebody could fairly call untuned. The benchmark notes table the whole block-size curve, the prefix queries, and eleven structures over a pinned set of thirteen corpora at three scales — where the ranking between DictIndex and marisa-trie reverses with how much the keys share, which one word list cannot show.

Two claims, scoped to libraries a Python or Rust project can install. The research-grade C++ frontier has no binding, so it is measured in a harness of its own, on the C² paper's protocol: lexindex is on the size–latency front on all thirteen corpora at a million keys and all six at ten million, DictIndex is the smallest structure on twelve and five of them and StringIndex on numeric — counting MARISA at its smallest, a configuration the campaign does not time — and DictIndex builds faster than every compressed trie there without labels, and HashedDictIndex answers id faster than every structure there on all nineteen while smaller than XCDAT, the fastest of them, on every one (measured in the benchmark notes; papers, code and licences cited). CompactHashIndex is the smallest string → dense id map here that can reject a non-member, 2.4× below marisa-trie at the default 8-bit fingerprint and 4.0× at 4 bits, when a bounded false-positive rate is acceptable: about 2^-fingerprint_bits by design, measured 6.2530 % at 4 bits and 1.5553 % at 6 over 2 M non-member probes on the 0.6.0 hash (z = +0.18 / −0.83 against theory), and on this version's 0.375 % at 8 and 0.003 % at 16 over 100 000. Both hashes are deterministic and unseeded, so an adversary who chooses the queries can find false positives at will — it is not a security primitive. StringIndex is the only structure here that answers fuzzy and subsequence queries, at 4× below a plain DAWG; ordered range queries DictIndex answers too, and more cheaply. On this corpus DictIndex at its default block is smaller than marisa-trie while answering everything marisa does and key(id), lower_bound and range besides (how it was measured), and a trie's size swings 3× across corpora, so it was measured on all of them: at block 1024 it is smaller than MARISA at its smallest, the best of 1 to 32 tries, on every one of the thirteen at a million keys, paths through the opt-in labels=True build (MARISA at its smallest).

Which one to pick

Every size above is one corpus at one n, and the ranking is stable across neither: a trie's size depends on how much the keys share, a fingerprint index's does not (three corpora, and 10 M). plan does this on your keys. lexindex.plan(keys, prefix=True) in Python, lexindex::plan(&keys, Needs::default().prefix()) in Rust, and lexindex plan keys.txt --prefix from a shell after either install: it prices every index that answers what you asked for — the dictionary at each of its three block sizes — ranks them cheapest first, and says when two are too close to call or when the corpus is one its model cannot carry. Past 100 000 keys it models from two draws of that size and lands within 1.6 % of the built DictIndex blob at the median and 8.3 % at worst, over 23 corpora at the blocks then priced, 32, 256 and 1024, scored 2026-11-02; below it, it builds the candidates and reports what they weigh. plan_file does the same for a keys file without ever holding it: 0.27 GB of resident memory against 1.30 on a 925 MB path list when 4.0 measured it, and the same ladder to the byte. By hand, in decision order:

  • Do the keys need to come back out, or be scanned in order? Then the fingerprint indexes are out: StringIndex for prefix / range / fuzzy, DictIndex for exact string ↔ rank at 56 % less — and HashedDictIndex over it where id is the hot path, 6.0× to 18× the dictionary's own search for 2.6 to 3.2 bytes a key more — PerfectHashIndex for id → key without ordering; each pays for the keys it stores.
  • Is a bounded false-positive rate acceptable? Then CompactHashIndex: 2.4× under marisa-trie on single words, 5.0× on random pairs, 3.3× at 10 M — and exactly one byte per key above the bare ClosedHashIndex (1.24 against 0.24), which is the fingerprint that buys the membership check.
  • Do the keys share a lot of structure (a path namespace, a versioned catalogue, a cross product)? Measure before choosing: that is where an FST can beat a keyless hash outright.
  • A dict / HashMap is not in the table because it has no serialised form: 71–95 bytes per key above the key list across these corpora (58–60 at 10 M), rebuilt from the keys on every process start, where every structure here is mapped from a file.

Point-lookup latency vs the standard library

cargo run --release --example bench — 1 M real dictionary-word bigrams (word_i.word_j, mean key 10.9 bytes; never a synthetic entity-000…N sequence, which arrives pre-sorted and hash-degenerate). Measured 2026-11-05 at ea82db8, the 5.0 candidate, on performance, six runs back to back, each lookup cell the minimum of five passes after a warm-up; the table quotes the minimum over the six. The six agree within 1 % on CompactHashIndex, both HashedDictIndex forms, PerfectHashIndex::id_unchecked and the HashMap control, while PerfectHashIndex::id spreads 6 % and StringIndex, BTreeMap and DictIndex 8–9 %, stepping between two levels (latency-rs-2026-11-05-arz-ea82db8.txt). Absolute numbers are one machine on one day — the std::HashMap control reads 233 ns here against 230 on 2026-11-03, 233–241 from 4.0 to 4.4 and 245–295 before them — so read the ratios within a column, and a shift under ~15 % between tables as the session. StringIndex read 1.30–1.47× of that control from 0.5.1 to 4.2 and reads 1.10× here, since 4.3's reader of its transducer.

structure build lookup note
lexindex PerfectHashIndex::id_unchecked ~317 ms ~56 ns closed vocabulary, no membership check
lexindex CompactHashIndex::id (fp=1) ~30 ms ~68 ns fingerprint-verified, 2^-8 false-positive rate
lexindex HashedDictIndex::id_unchecked ~151 ms ~71 ns closed vocabulary; the id is the key's rank, so key(id), prefix and range stay on the same index
lexindex HashedDictIndex::id (8 bits) ~161 ms ~82 ns fingerprint-checked, 2^-8; builds are the dictionary's and the sidecar's together
lexindex PerfectHashIndex::id (verified) ~310 ms ~107 ns one extra cache line + full key compare
std::HashMap<String, u32> ~167 ms ~233 ns in-RAM, not serialisable
lexindex StringIndex (FST) ~231 ms ~256 ns and prefix / range / fuzzy
lexindex DictIndex (256 per block) ~98 ms ~383 ns ordered, exact reverse; its worst case — a word.word cross product is what a transducer factors out (0.68 B/key against 1.93 here; on the dictionary 2.62 against 5.95, 280–293 ns against 168–181)
std::BTreeMap<String, u32> ~159 ms ~658 ns in-RAM

Reading it: for a fixed / closed vocabulary, PerfectHashIndex::id_unchecked is the fastest structure in the table — 4.2× as quick as the SipHash HashMap and 2.5× an FxHash one — and compact and serialisable. CompactHashIndex::id keeps a probabilistic membership check and still beats the HashMap 3.4× on lookup, and builds in a fifth of its time. HashedDictIndex answers with ranks — the ids its DictIndex gives, which the others cannot — 4.7× as fast as that dictionary's own id at 8 bits and 5.4× closed. Verified id pays one extra cache line and a key compare and is still twice as quick as the HashMap; StringIndex trades latency for the queries a hash map cannot answer at all. The other Rust string indexes, the three-corpus table, the Python-level table against dict and marisa-trie, the 1 M / 10 M scale table and the protocol behind every number are in the benchmarks.

Security

Every loader is a safe fn on arbitrary bytes since 1.0: a crafted blob answers wrong ids, never out-of-range ones. The load_mmap family is what is unsafe, and its obligation is about the file, not the bytes. The checksums are integrity and not authentication, and the hashes are unseeded, so this is not a HashDoS defence — the threat model and the supported versions are in SECURITY.md.

Sponsoring

If lexindex saves memory or latency in a system you run, consider sponsoring its development. Using it in production? Corporate sponsorship funds what keeps a library like this dependable — compatibility across Rust and Python releases, the benchmark suite behind every number above, security hardening of the loaders, and performance work at hundreds of millions of keys — and tells the maintainer which workloads to measure next.

Commercial support and integration work — a tuning pass on your key distribution, an integration into your stack, or a support retainer: ilia.gradina@gmail.com.

Used by

Nothing yet that I know of. If lexindex is in something you ship, say so in a Discussion and it goes here — knowing which workloads are real is what decides what gets measured next.

Prior art

The minimal perfect hash under the four hash indexes is in-crate and follows PHast's map-or-bump construction, the successor of PTHash: keys grouped into buckets by a first hash, a one-byte seed per bucket that slides the bucket's keys along a short slice of the table until every one lands on a free value, the buckets no seed places bumped to a smaller table under a fresh hash, and a remap that pulls every bumped key into a hole the first table left. Nothing is ever displaced, which is what makes the build one streaming pass over sorted hashes.

  • Giulio Ermanno Pibiri and Roberto Trani, PTHash: Revisiting FCH Minimal Perfect Hashing, SIGIR 2021 — arXiv:2104.10402.
  • Piotr Beling and Peter Sanders, PHast — Perfect Hashing with fast evaluation, 2025 — arXiv:2504.17918.
  • Ragnar Groot Koerkamp, PtrHash: Minimal Perfect Hashing at RAM Throughput, 2025 — arXiv:2502.15539, ptr_hash.
  • Sebastiano Vigna, PHastR: Faster Minimal Perfect Hashing with Rotated Layouts, 2026 — arXiv:2610.17833, in sux (measured beside MPH3).

Until 1.0 the perfect hash was ptr_hash. Its pilot table was serialised behind private fields, so a blob holding one could not be validated from outside the crate that owned it, and from_bytes and load_mmap had to be unsafe fn on both hash indexes; an MPH whose every array length is written and checked here makes those loaders safe, and that is the whole of the trade. The MPH3 table builds 10 M keys in 34.3 ns/key on one thread (10.5 ns/key on eight) at 1.91 bits/key, against 280 ns/key and 2.39 bits for 1.0's, and answers a lookup in 2.4 ns, 2.4 in a batch; the same-process comparison with ptr_hash and the PHast authors' ph crate is in the benchmarks.

License

MIT © Ilia Gradina

Metadata

Release files for lexindex 5.0.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 lexindex 5.0.0
File Size Uploaded Provenance Actions
lexindex-5.0.0.tar.gz 1.1 MB With provenance Details for lexindex-5.0.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for lexindex 5.0.0
File Actions
lexindex-5.0.0-cp315-abi3.abi3t-win_amd64.whl CPython 3.15 abi3t, abi3 Windows x86-64 Details for lexindex-5.0.0-cp315-abi3.abi3t-win_amd64.whl
lexindex-5.0.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl CPython 3.15 abi3t, abi3 Linux musl 1.2+ x86-64 Details for lexindex-5.0.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
lexindex-5.0.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl CPython 3.15 abi3t, abi3 Linux musl 1.2+ ARM64 Details for lexindex-5.0.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
lexindex-5.0.0-cp315-abi3.abi3t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.15 abi3t, abi3 Linux glibc 2.17+ x86-64 Details for lexindex-5.0.0-cp315-abi3.abi3t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
lexindex-5.0.0-cp315-abi3.abi3t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.15 abi3t, abi3 Linux glibc 2.17+ ARM64 Details for lexindex-5.0.0-cp315-abi3.abi3t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
lexindex-5.0.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl CPython 3.15 abi3, abi3t macOS 11.0+ ARM64 Details for lexindex-5.0.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl
lexindex-5.0.0-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for lexindex-5.0.0-cp314-cp314t-win_amd64.whl
lexindex-5.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 Details for lexindex-5.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl
lexindex-5.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64 Details for lexindex-5.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl
lexindex-5.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details for lexindex-5.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
lexindex-5.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 Details for lexindex-5.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
lexindex-5.0.0-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for lexindex-5.0.0-cp314-cp314t-macosx_11_0_arm64.whl
lexindex-5.0.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for lexindex-5.0.0-cp311-abi3-win_amd64.whl
lexindex-5.0.0-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for lexindex-5.0.0-cp311-abi3-musllinux_1_2_x86_64.whl
lexindex-5.0.0-cp311-abi3-musllinux_1_2_aarch64.whl CPython 3.11 abi3 Linux musl 1.2+ ARM64 Details for lexindex-5.0.0-cp311-abi3-musllinux_1_2_aarch64.whl
lexindex-5.0.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for lexindex-5.0.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
lexindex-5.0.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for lexindex-5.0.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
lexindex-5.0.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for lexindex-5.0.0-cp311-abi3-macosx_11_0_arm64.whl
lexindex-5.0.0-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for lexindex-5.0.0-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 30.1 MB

Release files / lexindex-5.0.0.tar.gz

Download URL lexindex-5.0.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
41acf2b20b94c2511c12b735a4c73e845aea0c0bc9fe09f3d45b49b8ff5705cf
BLAKE2b-256 checksum
How to use checksums
81774db90b10669eac76409911c4820bb2aeb8b89e7a51a73f469c3de7a7a896
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp315-abi3.abi3t-win_amd64.whl

Download URL lexindex-5.0.0-cp315-abi3.abi3t-win_amd64.whl
Size 1.5 MB
Tags CPython 3.15 Windows x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
8df2f20e3bcddb91bff9a309e9082084719b3a5a676d8b4341524f726d292e1c
BLAKE2b-256 checksum
How to use checksums
a857771e671ea8de11584fcd3f9c4dfa056298b1032bbcee6cabdf9f3c682514
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl

Download URL lexindex-5.0.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Size 1.8 MB
Tags CPython 3.15 Linux musl 1.2+ x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
dada1290c3996f60aa32855e3e636ca582c574e8ebb4277c0ccf7a81b4b17114
BLAKE2b-256 checksum
How to use checksums
17e31629d835f98da002add522b032d9341f4ee78936e31b0de2c417764e2c3b
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl

Download URL lexindex-5.0.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Size 1.7 MB
Tags CPython 3.15 Linux musl 1.2+ ARM64 abi3 abi3t
SHA-256 checksum
How to use checksums
ce67b0e865a2b6298bafe521720109e7d3d754a2e0fad1e5c2fa42f9db0be5ff
BLAKE2b-256 checksum
How to use checksums
e52ea151aedb96bad03a88327a7f334a4d00755734dedab24a2116c22c9aea96
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp315-abi3.abi3t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL lexindex-5.0.0-cp315-abi3.abi3t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.5 MB
Tags CPython 3.15 Linux glibc 2.17+ x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
b62a6f4f287f9bb3038e26308d22fedd73cbd8695bfbe579254ac128f195e269
BLAKE2b-256 checksum
How to use checksums
1ffcfc30f2bc3885489b07baa15e76826e358c1a6eb8d5b809f48aa291c23c7a
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp315-abi3.abi3t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL lexindex-5.0.0-cp315-abi3.abi3t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 1.5 MB
Tags CPython 3.15 Linux glibc 2.17+ ARM64 abi3 abi3t
SHA-256 checksum
How to use checksums
ab20d8bf35075dab5db073d18dff551675e9842b1bd6271f4f3e456957318d31
BLAKE2b-256 checksum
How to use checksums
1864fc7c7907f497caa764b11940ffb52e4274344f7e649606988bc342f5faa8
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl

Download URL lexindex-5.0.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.15 abi3 abi3t macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
57dc949faac9370e5cbdf220bedbe36d3e95efbd2af13b4aa7819f45e1ebc481
BLAKE2b-256 checksum
How to use checksums
8049e79bb5665f86afa97be7b162a5f6844bdad05cfceb00d2965ebe553a80fa
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp314-cp314t-win_amd64.whl

Download URL lexindex-5.0.0-cp314-cp314t-win_amd64.whl
Size 1.4 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
d273aadaeaff1dafbed65a87a280cef0938238c9163b100b0738170a889218b4
BLAKE2b-256 checksum
How to use checksums
5e65499ebe0bcfc0b30136227adc3be190a6be4e94d9ebedd3762e9392f60614
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl

Download URL lexindex-5.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 1.7 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
1cc1329d53cf8a7761b2188adb767ec33aeb64f602f2918e7c607f883f0bab51
BLAKE2b-256 checksum
How to use checksums
9a96997f3b91a47f7cfa9dae024fdfb8ecdfcaa55057fc43633260f98d44a570
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl

Download URL lexindex-5.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl
Size 1.6 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
0526993db336a5c767fc281ed288bcaa104630f66461d2db3d01e98e2d716283
BLAKE2b-256 checksum
How to use checksums
c7eac504d1499e75b6cde96fc51924042ab0c15af24616263c2c093d29112ad2
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL lexindex-5.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.5 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
03f395d87fcff086b3a868bf83fbab139035c115eb33ca98a26eed0650accb9c
BLAKE2b-256 checksum
How to use checksums
69477ef940c968137ec3c0ff1e04af3ac32494ff9e455fcdd0450d3e1a9d6d69
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL lexindex-5.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 1.4 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
282ac009c144485c586625dc3f18325fc7ce1ae121f52eafff461d7ec66aeff0
BLAKE2b-256 checksum
How to use checksums
22c9bc1602fd1a59441cf621d4c6bdf9cf40695faa9ad554beb1fc898ed98782
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp314-cp314t-macosx_11_0_arm64.whl

Download URL lexindex-5.0.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
aa2a5b85d110c7b3c9264bd6cedf46ebdfe2cf1a72b2ba5830ed1021251a9f7d
BLAKE2b-256 checksum
How to use checksums
89706eb1e19432edd8476b1b7f2bf0c8def596d2a7761e3a2d9e1d2a9fe75640
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp311-abi3-win_amd64.whl

Download URL lexindex-5.0.0-cp311-abi3-win_amd64.whl
Size 1.4 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
15a59600dbd94fee3d25eb2750e0662e358cec9e8e757672bca2ea69fb44f0da
BLAKE2b-256 checksum
How to use checksums
ffdc602fb9e376241fc376bcfbe58487de4553335d2acaeb30be02179369b0f0
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL lexindex-5.0.0-cp311-abi3-musllinux_1_2_x86_64.whl
Size 1.7 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
0afeb3d85f7b506d86885773da977ae6817fa3cc86a53afbd275aaf06eff4823
BLAKE2b-256 checksum
How to use checksums
fe96a2459d68a0346c0a4293478d506f02526907b5b0993eeb30d39206294c33
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL lexindex-5.0.0-cp311-abi3-musllinux_1_2_aarch64.whl
Size 1.6 MB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
c8e47c19aa951d0d0a22922c2e148742713efcd2ce0a61097ead644b26f248ab
BLAKE2b-256 checksum
How to use checksums
44767b1a409311e0192194cdf366d44a22cca860a42f13acf35f4fe4e8e1246a
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL lexindex-5.0.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.5 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
3f819df048fd9efcc1fbba3638a03a729c4101de71419923673dd854e03be9c8
BLAKE2b-256 checksum
How to use checksums
875d8908ee9e9302c7dff2b0342761fd268d7990ba149bfc45eaaa10c50ee05f
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL lexindex-5.0.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 1.5 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
9ac5db204c9f34615e66755ef0f48c972da016084ccdf9a35fb58a058a189e6c
BLAKE2b-256 checksum
How to use checksums
9430a20b2b102b8dbf026e18bb73f8ccc793f561aee3f31cd11c3fc29f8f44d1
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL lexindex-5.0.0-cp311-abi3-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ec7fff2c3f7abcd3ddc4462eb378a15bf5823d36ce5d420120197e929fe63c0e
BLAKE2b-256 checksum
How to use checksums
04994c009b7a7c9cfa80914bf340279d43a3e0b415e084032a1590264476d949
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 6, 2026.

Transparency log

Release files / lexindex-5.0.0-cp311-abi3-macosx_10_12_x86_64.whl

Download URL lexindex-5.0.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 1.5 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
83a9021d23614da6a5e245cc5918e253ab2dc6516661a909e510eb660c19ed36
BLAKE2b-256 checksum
How to use checksums
722567c34e42b70041e80aba43f93501a0b1f19b15ae735fc2b9323b20b8b688
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 6, 2026.

Transparency log

Security for lexindex 5.0.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 20 files in this release have been uploaded with provenance metadata.

Select from 20 files

Attestation for lexindex-5.0.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 6, 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.

Release history Release notifications | RSS feed

This release

5.0.0 This release

20 release files Full provenance

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