Skip to main content

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

License

MIT License

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)

Source distribution for gdpr-compliance-checker 0.1.1
File Size Uploaded
gdpr_compliance_checker-0.1.1.tar.gz 23.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gdpr-compliance-checker 0.1.1
File Interpreter ABI Platform
gdpr_compliance_checker-0.1.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page