cidr-trie
Store/search CIDR prefixes in a trie structure.
Decision gist · record as of 2026-08-14
Yes, if you need CIDR prefix matching and your Python environment is compatible. The package is stable, has no dependencies, and works for its core use case. However, verify Python version compatibility first (requires_python is unspecified), and be aware that no maintenance or updates are forthcoming—use it only if the existing codebase meets your needs without modification.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction installation with no runtime dependencies.
- However, the package is abandoned—last release was 2019-07-05 and last commit 2022-12-08, so no active maintenance or bug fixes should be expected.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
last release 2019-07-05 (2597 days) · last repo commit 2022-12-08 · 10 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 91,203 downloads/mo, #13,532 on PyPI
Alternatives
Verify before relying
pip install cidr-trie
from cidr_trie import PatriciaTrie
trie = PatriciaTrie()
trie.insert("0.0.0.0/0", "Internet")
trie.insert("32.32.32.32/32", "example")
result = trie.find_all("32.32.32.32")
print([node.value for node in result])- Whether the package works correctly with modern Python versions (requires_python is unspecified in the fact sheet)
- Performance characteristics for large CIDR datasets or production-scale deployments
- Any known issues or edge cases in the abandoned codebase that may affect reliability
What it is and what it does
cidr-trie implements a Patricia trie (a space-efficient prefix tree) to store and query CIDR network blocks. You insert IP networks in CIDR notation along with arbitrary data, then query for all networks that contain a given IP address. It supports both IPv4 and IPv6 addresses and returns all matching prefixes from most specific to least specific.
The package has no external runtime dependencies and installs cleanly. However, it has been abandoned since mid-2019 with no active maintenance, so it receives no bug fixes, security updates, or compatibility improvements for newer Python versions. It remains stable for its intended use case if your Python environment is compatible.
Use it for
- Build a geolocation or ISP lookup table by storing CIDR blocks with associated metadata and querying IP addresses against it.
- Implement IP-based access control lists by storing allowed or blocked CIDR ranges and checking incoming requests.
- Organize network routing tables or firewall rules that need fast prefix matching on IP addresses.
- Validate whether an IP address falls within a known set of CIDR ranges such as private networks.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need CIDR prefix matching and your Python environment is compatible.
The package is stable, has no dependencies, and works for its core use case. However, verify Python version compatibility first (requires_python is unspecified), and be aware that no maintenance or updates are forthcoming—use it only if the existing codebase meets your needs without modification.
Install
cidr-trie on PyPI
Before you install
Low friction installation with no runtime dependencies. However, the package is abandoned—last release was 2019-07-05 and last commit 2022-12-08, so no active maintenance or bug fixes should be expected.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install cidr-trie
from cidr_trie import PatriciaTrie
trie = PatriciaTrie()
trie.insert("0.0.0.0/0", "Internet")
trie.insert("32.32.32.32/32", "example")
result = trie.find_all("32.32.32.32")
print([node.value for node in result])
Verify before relying
- Whether the package works correctly with modern Python versions (requires_python is unspecified in the fact sheet)
- Performance characteristics for large CIDR datasets or production-scale deployments
- Any known issues or edge cases in the abandoned codebase that may affect reliability
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,597 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 91,203 / month, #13,532 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3 :: OnlyTopic :: InternetTopic :: Software Development :: Libraries :: Python Modules |
Evidence: cidr_trie-3.1.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “CIDR IP address lookup”
- cidr-trieStores and queries CIDR IP address blocks (IPv4 and IPv6) in a trie…
- IPyIPy provides Python classes for parsing, manipulating, and working…
- django-netfieldsProvides Django model fields for PostgreSQL network types (INET,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also py-radix · iptools · netaddr · ipaddr · IPy · PyTrie · pygtrie · trie · isc-dhcp-leases · ipwhois