$npx skillfedfor your agent

IP2Location

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.

With conditionsPyPI Python ModulesReleased Sep 2025394.8K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ip2location-8.11.0-py3-none-any.whl
v8.11.0 · released 2025-09-04

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • You must download an IP2Location BIN database file separately (free LITE versions available at lite.ip2location.com or commercial versions at ip2location.com) before queries will work.
  • Installs with no runtime dependencies and low friction.
  • Last release was 344 days ago; the repository is active and not archived, though maintenance appears to be slowing.

License · maintenance · safety

permissive license (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute the library freely in commercial and private projects with minimal restrictions.

last release 2025-09-04 (344 days) · last repo commit 2025-12-31 · 165 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 394,765 downloads/mo, #6,987 on PyPI

Verify before relying

pip install ip2location

import ip2location
db = ip2location.IP2Location()
db.open('path/to/IP2LOCATION-LITE-DB5.BIN')
result = db.query_by_ip_address('8.8.8.8')
  • Whether the library actively maintains compatibility with Python versions beyond 3.13.
  • Performance characteristics when querying very large numbers of addresses.
  • Whether BIN database updates are automatic or require manual download and replacement.
Same gist for agents: .md · .json

What it is and 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.

The 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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.

Install

ip2location on PyPI

Before you install

Installs with no runtime dependencies and low friction. Last release was 344 days ago; the repository is active and not archived, though maintenance appears to be slowing.

You must download an IP2Location BIN database file separately (free LITE versions available at lite.ip2location.com or commercial versions at ip2location.com) before queries will work.

License in practice

Licensed under MIT (permissive), so you can use, modify, and distribute the library freely in commercial and private projects with minimal restrictions.

Quickstart

pip install ip2location

import ip2location
db = ip2location.IP2Location()
db.open('path/to/IP2LOCATION-LITE-DB5.BIN')
result = db.query_by_ip_address('8.8.8.8')

Verify before relying

  • Whether the library actively maintains compatibility with Python versions beyond 3.13.
  • Performance characteristics when querying very large numbers of addresses.
  • Whether BIN database updates are automatic or require manual download and replacement.

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 344 days since the last release
Last repo commit
First released
Downloads394,765 / month, #6,987 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules

Evidence: ip2location-8.11.0-py3-none-any.whl

Tags

Capabilities
ip geolocation lookupip address to locationfind city from ipipv4 ipv6 geolocationip to country region citygeoip database queryip location database
Topics
geolocationip-lookupoffline-database

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “find city from ip”

  • IP2LocationLooks up geolocation data (country, region, city, latitude/longitude,…
  • maxminddb-geolite2Provides geolocation lookups by IP address using MaxMind's GeoLite2…
  • geoip2fastGeoIP2Fast performs fast geolocation lookups for IPv4 and IPv6…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also geoip2fast · ip3country · ipinfo · walkscore-api · maxminddb-geolite2 · maxminddb · ipwhois · geoip2 · placekey · geoip2-tools