{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/7"},{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/5"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/15"},{"label":"Internet","url":"https://skillfed.io/packages/category/internet/4"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/7"},{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/4"},{"label":"Security","url":"https://skillfed.io/packages/category/security/2"},{"label":"Networking","url":"https://skillfed.io/packages/category/system-networking"},{"label":"Systems Administration","url":"https://skillfed.io/packages/category/system-systems-administration"},{"label":"Localization","url":"https://skillfed.io/packages/category/software-development-localization"}],"enrichment":{"capability":"GeoIP2Fast performs fast geolocation lookups for IPv4 and IPv6 addresses, returning country codes, city names, ASN information, and CIDR blocks from a local binary data file.","skillfed_tags":["geolocation","offline-lookup","pure-python"],"use_cases":["Geoblock or route traffic based on IP country origin in web applications or APIs.","Enrich server logs or analytics with geolocation data without making external API calls.","Identify ASN and network ownership for security monitoring or abuse detection.","Resolve city-level location for user analytics or localization features in high-throughput services.","Generate test data using the random IP address generation functions for unit or integration tests."],"what_it_does":"GeoIP2Fast is a pure-Python geolocation library that maps IP addresses to geographic and network information using local binary data files. It loads Maxmind GeoLite2 data into memory and performs lookups via binary search on ordered IP ranges, returning country codes, city names, ASN names, and CIDR blocks for both IPv4 and IPv6 addresses. The library requires no external dependencies or network calls\u2014only the Python file and a .dat.gz data file.\n\nThe package ships with a small country-level IPv4 database, but city and IPv6 variants must be downloaded separately or generated from Maxmind CSV files using the included geoip2dat.py tool. Data files are updated twice weekly. The library supports Python 3.7 through 3.13 and PyPy3, runs on Linux, Windows, and macOS, and is designed for applications that need fast, offline geolocation without external service dependencies.","worth_installing":"Yes, with conditions. Install if you need fast, offline IP geolocation and are willing to manage data file downloads separately. The library is actively maintained, has no dependencies, and supports current Python versions. High install friction (separate data file requirement) and the need to choose between country/city and IPv4/IPv6 variants make it less suitable for quick prototyping, but it is well-suited for production systems where speed and offline operation matter."},"id":"geoip2fast","links":{"html":"https://skillfed.io/packages/geoip2fast","md":"https://skillfed.io/packages/geoip2fast.md","pypi":"https://pypi.org/project/geoip2fast/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-06-21","license_spdx":null,"license_treatment":"permissive","name":"geoip2fast","python_support":"supports_current","summary":"GeoIP2Fast is the fastest GeoIP2 country/city/asn lookup library that supports IPv4 and IPv6. A search takes less than 0.00003 seconds. It has its own data file updated twice a week with Maxmind-Geolite2-CSV, supports IPv4/IPv6 and is Pure Python!"},"popularity":{"monthly_downloads":214693,"position":9410,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.2"}
