{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/2"}],"enrichment":{"capability":"Looks up the ISO 3166-1 alpha-2 country code for an IP address using a compacted local database, with zero runtime dependencies and a footprint under 500KB.","skillfed_tags":["geolocation","ip-lookup","lightweight"],"use_cases":["Evaluate location-based feature flags or A/B test conditions based on user IP country.","Filter or route traffic by country in a lightweight, self-contained service.","Add country-level analytics or logging to requests without external API calls.","Implement country-based access controls or compliance checks in edge functions.","Populate country metadata in high-volume logging pipelines where size and speed matter."],"what_it_does":"ip3country is a minimal IP-to-country lookup library designed for speed and size. It maps IP addresses to their ISO 3166-1 alpha-2 country codes using a compacted database derived from IP2Location LITE data, all in under 500KB with zero external dependencies. The library supports both string and numeric IP address formats and is built for applications that need fast, local country detection without the overhead of larger geolocation libraries.\n\nThe package is actively maintained and ranks in the top 5000 PyPI packages by download volume. It was created at Statsig to power country-level feature flag rollouts and A/B tests, making it suitable for any application requiring lightweight, offline country-level IP geolocation without network calls or large data files.","worth_installing":"Yes. Zero dependencies, active maintenance, permissive license, and a proven track record of high download volume make this a reliable choice for any application needing fast, local IP-to-country lookup. The small footprint and offline operation are significant advantages over larger geolocation libraries. Verify that IP2Location LITE's accuracy meets your geographic coverage needs before deploying."},"id":"ip3country","links":{"html":"https://skillfed.io/packages/ip3country","md":"https://skillfed.io/packages/ip3country.md","pypi":"https://pypi.org/project/ip3country/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-07-10","license_spdx":null,"license_treatment":"permissive","name":"ip3country","python_support":"supports_current","summary":"A zero-dependency, local, fast, tiny ip-address to country lookup"},"popularity":{"monthly_downloads":8613615,"position":1602,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.4.0"}
