pygtrie: Pure Python Trie Data Structure
JSON →pygtrie is a pure Python library implementing a trie data structure. It provides `Trie`, `CharTrie`, and `StringTrie` classes, each implementing a mutable mapping (dictionary-like) interface. Its strengths lie in prefix-based operations, such as iterating over or deleting subtries, prefix checking, and shortest/longest prefix look-ups. It also includes a `PrefixSet` for managing sets of prefixes. The current version is 2.5.0, with releases occurring periodically to introduce features and address compatibility.
Traffic · last 30 days ↓75% vs prev 7d
total hits 22
actors 7 distinct systems
last hit 3d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France · PH
API endpoints
full doc /v1/registry/pygtrie
install /v1/registry/pygtrie/install
compatibility /v1/registry/pygtrie/compatibility