Last updated:
0 purchases
pyctrie 0.1
Pyctrie===================Fast, pure C [Trie](http://en.wikipedia.org/wiki/Trie) dictionaryFeatures:=================== * Very fast. Same performance characteristics with Python's **dict**. * Supports fast **suffix**, **prefix**, **correction** (spell) operations. * Supports Python 2.6 <= x <= 3.4Example:===================It is just like a dict:```pythonimport trieztr = triez.Trie()tr[u"foo"] = 1del trie[u"foo"]```But with extra features:```pythontr[u"foo"] = 1tr.corrections(u"fo"){'foo'}tr[u"foobar"] = 1tr.prefixes(u"foobar"){'foo', 'foobar'}tr.suffixes(u"foo"){'foo', 'foobar'}```Generator support:```pythontr[u"foo"] = 1tr[u"foobar"] = 1for x in tr.iter_suffixes(u"foo"): print(x)foofoobar```License===================MIT
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.