skip to navigation
skip to content

IPToCC 1.1.1

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

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

  • No external API call.
  • No paid GeoIP service.

Read The Free and Simple Way To Know Who Visits Your Site.

Features

  • Thread-safe

Install

pip install IPToCC

Usage

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

Libraries Used

Old implementations

  • SQLAlchemy + SQLite - Not thread-safe
  • UnQLite - large database file, problems with thread-safety
 
File Type Py Version Uploaded on Size
IPToCC-1.1.1.tar.gz (md5) Source 2017-09-02 1MB