A Python package to analyze websites for GDPR compliance indicators
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gdpr_compliance_checker-0.1.0.tar.gz.
File metadata
- Download URL: gdpr_compliance_checker-0.1.0.tar.gz
- Upload date:
- Size: 23.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f89ef44f7b7326c484fedcefaf86edb7c8a8a602d4eaf1f1c03db194fd0a6ec8
|
|
| MD5 |
60765e57179bbced9bb9579202564b14
|
|
| BLAKE2b-256 |
5d46961c8d519d686c6e41f795df154a25ba1e6be13b5cbb27a10fbbabda1328
|
File details
Details for the file gdpr_compliance_checker-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gdpr_compliance_checker-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e038800f344bf55435da381f1466aba28d4c9a012ccf170a46d23e7cc9d9d00
|
|
| MD5 |
9bb756474ecb49d7887855d7702ef7e9
|
|
| BLAKE2b-256 |
2865874caaac3368bff036384814997dd079673d78f947b04bfe84fa57cbff3a
|