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

  • <input type="checkbox" checked="" disabled="" /> No external API call
  • <input type="checkbox" checked="" disabled="" /> No paid GeoIP service
  • <input type="checkbox" checked="" disabled="" /> Thread-safe
  • <input type="checkbox" checked="" disabled="" /> 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

Project details


Download files

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

Files for iptocc, version 2.1.2
Filename, size File type Python version Upload date Hashes
Filename, size iptocc-2.1.2-py3-none-any.whl (6.9 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size iptocc-2.1.2.tar.gz (6.7 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page