{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/12"}],"enrichment":{"capability":"Looks up geolocation data (country, region, city, latitude/longitude, ISP, timezone, and more) from an IP address or hostname by querying an IP2Location BIN database file.","skillfed_tags":["geolocation","ip-lookup","offline-database"],"use_cases":["Geoblock content or services by country or region based on user IP addresses.","Enrich user analytics with location, ISP, and network type information.","Detect and flag suspicious login attempts from unexpected geographic regions.","Route requests to regional servers or CDN nodes based on client IP location.","Populate user profiles with inferred timezone and language preferences from IP."],"what_it_does":"IP2Location is a Python library for IP geolocation lookups that reads from binary database files to return detailed location and network information for both IPv4 and IPv6 addresses. It extracts country, region, city, coordinates, ISP, timezone, domain, area code, weather station data, mobile carrier codes, elevation, usage type, and IAB category from a single IP query.\n\nThe library has no runtime dependencies and supports Python 3.5 through 3.13 on CPython and PyPy. To use it, you download a BIN database file from IP2Location (free LITE or commercial versions), then instantiate the library with that file path and call query methods. It's a straightforward wrapper around binary database lookups, so the main constraint is obtaining and maintaining the database file separately.","worth_installing":"Yes, if you need IP geolocation and are willing to manage a separate BIN database file. The library is stable, has no dependencies, and covers a broad range of lookup fields. The main trade-off is that you must download and maintain the database yourself; it's not a live API service. Maintenance is aging but the repository remains active and there are no known vulnerabilities."},"id":"ip2location","links":{"html":"https://skillfed.io/packages/ip2location","md":"https://skillfed.io/packages/ip2location.md","pypi":"https://pypi.org/project/ip2location/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-09-04","license_spdx":null,"license_treatment":"permissive","name":"IP2Location","python_support":"unspecified","summary":"This is an IP geolocation library that enables the user to find the country, region, city, latitude and longitude, ZIP code, time zone, ISP, domain name, area code, weather info, mobile info, elevation, usage type, address type and IAB category from an IP address. It supports both IPv4 and IPv6 lookup."},"popularity":{"monthly_downloads":394765,"position":6987,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"8.11.0"}
