An efficient IP address storage and lookup module for Python.
Low maintenance activity. Last release 15 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install pytriciaPytricia is a Python module to store IP prefixes in a
patricia tree. It's based on Dave Plonka's modified patricia tree
code, and has three things to recommend it over related modules
(including py-radix and SubnetTree):
* it's faster,
* it works nicely in Python 3, and
* there are a few nicer library features for manipulating the structure.
See the github repo for documentation and some performance numbers: <https://github.com/jsommers/pytricia>.
Pytricia is released under terms of the GNU Lesser General Public License,
version 3.