/
View dependency graph
Depends on
- dh-python (dh-sequence-python3)
- python3-defaults (python3-all)
- setuptools (python3-setuptools)
- sortedcontainers (python3-sortedcontainers)
- sphinx (dh-sequence-sphinxdoc, python3-sphinx)
- debhelper-compat
README (full)
pytrie
pytrie is a a pure Python 3 implementation of the trie data structure.
A trie is an ordered tree data structure that is used to store a mapping where the keys are sequences, usually strings over an alphabet. In addition to implementing the mapping interface, tries allow finding the items for a given prefix, and vice versa, finding the items whose keys are prefixes of a given key.
To install run:
pip install pytrie
Documentation is available at Read the Docs.
Changelog
0.4.0
- Drop Python 2 support
0.3.1
- Fixed iteritems/itervalues for SortedDicts in Python 2.7.
0.3
- Fixed bug for tries with zero-length keys.
- Added
__bool__(__nonzero__) and__cmp__methods toTrie. - Added
sortedcontainersdependency. - Linting.
- Converted from Mercurial to Git.
0.2
- Initial Python 3 support (thanks Dmitrijs Milajevs)
0.1
- Initial release
| dir | PyTrie.egg-info/ |
| dir | debian/ |
| dir | docs/ |
| dir | tests/ |
| file | LICENSE |
| file | MANIFEST.in |
| file | PKG-INFO |
| file | README.md |
| file | pytrie.py |
| file | setup.cfg |
| file | setup.py |