Skip to main content

Check if a user is covered by GDPR. Compare IP address to list of EEA/EU countries.

Project description

GDPR Checker

This module is designed to make it easier to look up if a user appears to be a resident covered by the GDPR based on IP address.

This is only a best-effort guess, no guarantee or claim is made that this information will always be accurate or reliable.

Installation:

pip install gdpr_check maxminddb-geolite2

Usage:

from gdpr_check import Checker

# default uses bundled GeoLite2 DB:
c = Checker()

# optional: pass path to local maxmind GeoIP2 database
c = Checker('/path/to/GeoLite2-Country_20180501/GeoLite2-Country.mmdb')

# check IPs
c.is_gdpr_resident_ip('162.255.119.253')  # returns True - Czech Republic IP
c.is_gdpr_resident_ip('98.158.84.74')  # returns False - Canadian IP

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

gdpr_check-0.8.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file gdpr_check-0.8.tar.gz.

File metadata

  • Download URL: gdpr_check-0.8.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for gdpr_check-0.8.tar.gz
Algorithm Hash digest
SHA256 40f4f264005fa9d65161895f9d356698c2764b1574455010f322e0c9a250eaee
MD5 7244d70fcb9b48855320171872f8ad02
BLAKE2b-256 dfd762596ef03f584f5326c051d08a6f1ce815cf340ad0131e654bd4f2ff2c7f

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