Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/revmischa/gdpr_check
Python module to check if an IP address is covered by GDPR
https://github.com/revmischa/gdpr_check
Last synced: 3 days ago
JSON representation
Python module to check if an IP address is covered by GDPR
- Host: GitHub
- URL: https://github.com/revmischa/gdpr_check
- Owner: revmischa
- License: other
- Created: 2018-05-04T14:09:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:04:28.000Z (about 2 years ago)
- Last Synced: 2024-10-18T07:53:15.720Z (3 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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`## 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
```