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

Project details


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.2.tar.gz (6.7 MB view details)

Uploaded Source

Built Distribution

iptocc-2.1.2-py3-none-any.whl (6.9 MB view details)

Uploaded Python 3

File details

Details for the file iptocc-2.1.2.tar.gz.

File metadata

  • Download URL: iptocc-2.1.2.tar.gz
  • Upload date:
  • Size: 6.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.6.7 Linux/4.15.0-1028-gcp

File hashes

Hashes for iptocc-2.1.2.tar.gz
Algorithm Hash digest
SHA256 0abf7e01be6e6317dcf9ae015daba43977d26bbee2831e2621633da84bcbe435
MD5 e4f219c1fc879dca09f9e3aada6443aa
BLAKE2b-256 29411d26da2834ab2e7ef9f9111b4a1fa2ee780f653c9bfec2fc98d4a53ac1fc

See more details on using hashes here.

File details

Details for the file iptocc-2.1.2-py3-none-any.whl.

File metadata

  • Download URL: iptocc-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.6.7 Linux/4.15.0-1028-gcp

File hashes

Hashes for iptocc-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3399dda4df5142b89e29a28d6edbc09b8fcbd47980daeb07a84beb630057bfb9
MD5 48e22e0f5d3a9564c250726ee1294e5d
BLAKE2b-256 8dd0f2070d55d4c1b7e7e9713d460283016e1f5898458fe7a0db8ef0b8adde9a

See more details on using hashes here.

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