{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/21"},{"label":"Networking","url":"https://skillfed.io/packages/category/system-networking/2"}],"enrichment":{"capability":"pyasn performs fast offline IP address to Autonomous System Number (ASN) lookups using prebuilt databases from BGP archives, supporting both current and historical queries.","skillfed_tags":["bgp-routing","offline-lookup","network-analysis"],"use_cases":["Bulk IP geolocation and routing analysis in network security or research without repeated online API calls.","Historical network routing analysis by loading IPASN databases from different dates to track AS ownership changes.","Building custom BGP prefix lookup tools by converting your own MRT archives into queryable databases.","Offline network traffic classification and AS-path analysis in environments without external API access."],"what_it_does":"pyasn is a C-and-Python extension module that maps IP addresses to their originating Autonomous System Numbers using offline, precomputed databases. It uses a radix tree data structure to store and query IP prefixes efficiently, supporting both IPv4 and IPv6. Unlike online lookup services (whois, dig, JSON APIs), pyasn trades initial database load time for much faster per-lookup performance, making it suitable for bulk or repeated queries.\n\nThe package includes utility scripts to download BGP MRT/RIB archives and convert them into local IPASN database files, enabling historical lookups by date. Initial database loading is the most expensive operation; the documentation recommends caching loaded databases when performing multiple historical lookups. The module has no runtime dependencies and compiles on Linux and Windows, though Windows builds require Microsoft Visual C++.","worth_installing":"Yes, if you need offline IP-to-ASN lookups and can tolerate high installation friction (C compiler required). The package is stable and has no known vulnerabilities, but maintenance is dormant\u2014last release was over a year ago. Install only if bulk or historical lookups justify the upfront compilation cost over simpler online alternatives."},"id":"pyasn","links":{"html":"https://skillfed.io/packages/pyasn","md":"https://skillfed.io/packages/pyasn.md","pypi":"https://pypi.org/project/pyasn/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-09-01","license_spdx":null,"license_treatment":"permissive","name":"pyasn","python_support":"unspecified","summary":"Offline IP address to Autonomous System Number lookup module."},"popularity":{"monthly_downloads":94035,"position":13347,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.6.2"}
