GDPR Compliance Checker
A Python package to analyze websites for GDPR (General Data Protection Regulation) compliance indicators.
Installation
pip install gdpr-compliance-checker-dostogir
Quick Start
Command Line Usage
# Basic check
gdpr-check https://example.com
# Detailed analysis with HTML report
gdpr-check https://example.com --detailed --output report.html
# Batch processing
gdpr-check urls.txt --batch --output comparison.html
Python API
from gdpr_compliance_checker import GDPRChecker
# Initialize checker
checker = GDPRChecker()
# Analyze a website
result = checker.analyze_url("https://example.com")
# Display results
print(f"GDPR Score: {result.score}/100")
print(f"Grade: {result._get_grade()}")
print(f"Privacy Policy: {result.has_privacy_policy}")
print(f"Cookie Consent: {result.has_cookie_consent}")
# Generate reports
html_report = result.to_html()
json_report = result.to_json()
Features
- Privacy Policy Detection
- Cookie Consent Analysis
- GDPR Compliance Scoring (0-100)
- Third-party Tracker Detection
- Data Rights Information Checking
- Multi-language Support
- Batch Processing for Multiple URLs
- Multiple Report Formats (HTML, JSON, CSV)
Compliance Scoring
The tool evaluates websites based on:
- SSL/TLS Encryption (10 points)
- Privacy Policy (25 points)
- Cookie Consent (20 points)
- Data Subject Rights (20 points)
- Contact Information (10 points)
- Legal Basis (10 points)
- DPO Information (5 points)
Advanced Usage
Custom Compliance Rules
from gdpr_compliance_checker import GDPRChecker, ComplianceRule
checker = GDPRChecker()
# Add custom rule
custom_rule = ComplianceRule(
name="Custom Check",
description="Check for specific requirements",
keywords=["keyword1", "keyword2"],
weight=10
)
checker.add_custom_rule(custom_rule)
Batch Processing
from gdpr_compliance_checker import BatchChecker
batch_checker = BatchChecker(max_workers=5)
results = batch_checker.check_urls(["site1.com", "site2.com"])
batch_checker.generate_comparison_report(results, "report.html")
Disclaimer
This tool provides technical analysis only and should not be considered legal advice. For comprehensive GDPR compliance, consult with legal professionals.
Author
Mohammad Golam Dostogir
- Website: https://dostogir.dev
- GitHub: https://github.com/dostogircse171
- PyPI: https://pypi.org/user/dostogircse171/
License
MIT License
Metadata
Release files for gdpr-compliance-checker 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gdpr_compliance_checker-0.1.1.tar.gz | 23.3 kB | Without provenance | Details for gdpr_compliance_checker-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gdpr_compliance_checker-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for gdpr_compliance_checker-0.1.1-py3-none-any.whl |
Total release size: 47.6 kB
Release files / gdpr_compliance_checker-0.1.1.tar.gz
| Download URL | gdpr_compliance_checker-0.1.1.tar.gz |
|---|---|
| Size | 23.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba1bbeef1b95856b4ffd27925d3157de724f50bf7457451ff8c362ee1e1e53c6
|
|
BLAKE2b-256 checksum How to use checksums |
a9fff0aa0718414bdf5faf9c41f59d1474c98e4738aef303fb0db553384cad86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.0
|
Release files / gdpr_compliance_checker-0.1.1-py3-none-any.whl
| Download URL | gdpr_compliance_checker-0.1.1-py3-none-any.whl |
|---|---|
| Size | 24.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0f1c8bbfad93465bbab198066cd6757da855efa7613b6e6fd58057bdd48fe5a
|
|
BLAKE2b-256 checksum How to use checksums |
1f62fdba9aa6652f1f7ebcf31271a7c62ff1fc02602e8c81c3231dd65ed85692
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.0
|
Security for gdpr-compliance-checker 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.