{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/15"},{"label":"Networking","url":"https://skillfed.io/packages/category/system-networking"}],"enrichment":{"capability":"Implements a radix tree data structure for efficient storage and lookup of IPv4 and IPv6 network prefixes, commonly used for routing table operations.","skillfed_tags":["routing","ip-networks","data-structures"],"use_cases":["Build a routing table simulator or network lookup service that matches IP addresses to their containing network prefixes.","Implement IP-based access control or firewall rules by storing allowed/blocked CIDR ranges and checking incoming addresses.","Store geolocation or ASN data indexed by IP prefix and retrieve it with a single lookup.","Analyze network traffic by classifying packets into predefined subnets and aggregating statistics per prefix.","Validate or normalize network configurations by checking whether proposed prefixes overlap with existing allocations."],"what_it_does":"py-radix provides a radix tree (also called a trie) optimized for storing and retrieving network prefixes. It accepts IPv4 and IPv6 addresses in multiple formats\u2014CIDR notation, separate network and mask length, or binary packed addresses\u2014and supports three types of prefix searches: exact match, best match (longest prefix, used in routing), and worst match (shortest prefix). The tree stores arbitrary metadata in a data dictionary attached to each node.\n\nThe package is implemented primarily in C for speed, with a pure Python fallback available. It has no runtime dependencies and compiles to wheels for Python 3.9\u20133.12 on macOS, Linux, Windows, and ARM architectures. The API is straightforward: create a tree, add prefixes, and query them using one of the search methods. It is commonly used in network applications, routing simulators, and IP-based access control systems.","worth_installing":"Yes, if you need efficient prefix matching for IPv4 or IPv6 networks. The package is stable, permissively licensed, has no dependencies, and compiles to wheels for most platforms. The aging maintenance status (last release 253 days ago) is acceptable for a mature, narrow-purpose library with no known vulnerabilities, but check whether the feature set meets your exact needs before committing to it as a long-term dependency."},"id":"py-radix","links":{"html":"https://skillfed.io/packages/py-radix","md":"https://skillfed.io/packages/py-radix.md","pypi":"https://pypi.org/project/py-radix/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-12-04","license_spdx":null,"license_treatment":"permissive","name":"py-radix","python_support":"unspecified","summary":"Radix tree implementation"},"popularity":{"monthly_downloads":211822,"position":9472,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.0"}
