Ross ROSS = Recommend OSS · open-source software intelligence for agents

pytries/marisa-trie

Static memory-efficient Trie-like structures for Python based on marisa-trie C++ library. observed · 2026-08-28

github.com/pytries/marisa-trie · homepage · Cython · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

81/100

  • Activity 93
  • Release rhythm 54
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 112.0
  • age_days: 5129
  • days_rel: 147
  • days_push: 44
  • n_releases_24m: 5

Full methodology

Adoption not part of the score

1123 stars · 98 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A Python library providing static, memory-efficient trie data structures built on the marisa-trie C++ library via Cython bindings. It stores string keys using 50x-100x less memory than a Python dict while offering comparable lookup speed and fast prefix search.

Use cases

  • store large dictionaries of strings with minimal memory
  • fast prefix search / autocomplete lookups in Python
  • memory-efficient string-to-value mapping
  • build token dictionaries for NLP pipelines
  • serialize compact string sets to disk

When to choose

  • you need immutable string key storage far more compact than a dict
  • you need prefix-based queries like .prefixes() or common-prefix search
  • you want pip-installable Python bindings for marisa-trie

When to avoid

  • you need mutable tries with frequent insertions and deletions
  • you need a values() method or fast .prefixes() on BytesTrie/RecordTrie
  • you need read()/write() with file-like objects (use pickling instead)

Facets

library · maturity active

search-engine serialization developer-tools python cross-platform trie marisa-trie cython memory-efficient prefix-search string-mapping data-structures algorithms natural-language-processing

1 source

Member repositories

RepositoryRoleHealth v2
pytries/marisa-triemain81

For agents

markdown · JSON · MCP: product_card(name="pytries/marisa-trie")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem