8000 GitHub - pakolicztamas/IPToCC: Get country code of IPv4/IPv6 address. Address lookup is done offline.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pakolicztamas/IPToCC

 
 

Repository files navigation

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

  • ftp://ftp.afrinic.net/stats/afrinic/delegated-afrinic-extended-latest
  • ftp://ftp.arin.net/pub/stats/arin/delegated-arin-extended-latest
  • ftp://ftp.apnic.net/public/apnic/stats/apnic/delegated-apnic-extended-latest
  • ftp://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-extended-latest
  • ftp://ftp.ripe.net/pub/stats/ripencc/delegated-ripencc-extended-latest

Dependencies

References

Maintainers

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.4%
  • Makefile 3.6%
0