Skip to main content

Get country code of IPv4/IPv6 address. Address lookup is done offline.

Project description

IPToCC

Get ISO country code of IPv4/IPv6 address. Address lookup is done locally.

License Version
Travis CI Coverage
AppVeyor Supported versions
Wheel Implementation
Status Downloads
Show your support

Features

  • No external API call
  • No paid GeoIP service
  • Thread-safe
  • Offline

To learn about using IP addresses for geolocation, read the Wikipedia article to gain a basic understanding.

Install

pip install IPToCC

Usage

from iptocc import get_country_code
country_code = get_country_code('<IPv4/IPv6 address>')

Databases

Dependencies

References

Maintainers

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

IPToCC-2.1.1.tar.gz (6.7 MB view hashes)

Uploaded Source

Built Distribution

IPToCC-2.1.1-py2.py3-none-any.whl (6.9 MB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page