Skip to main content

An efficient IP address storage and lookup module for Python.

Project description

Pytricia 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytricia-1.3.0.tar.gz (34.1 kB view details)

Uploaded Source

File details

Details for the file pytricia-1.3.0.tar.gz.

File metadata

  • Download URL: pytricia-1.3.0.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for pytricia-1.3.0.tar.gz
Algorithm Hash digest
SHA256 1c3a3d6909e10d4c9c2f0fe4542a2481e109d29aab99cc027ca7fe93f8c8853f
MD5 3a0d76cd06302451646fc038d67637bb
BLAKE2b-256 42c6e077cffbf4a2f364657b757fccd8f4694bffc6350fc30a563246bc5fbd9d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page