Skip to main content

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

License

MIT License

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_compliance_checker-0.1.1.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gdpr_compliance_checker-0.1.1-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file gdpr_compliance_checker-0.1.1.tar.gz.

File metadata

  • Download URL: gdpr_compliance_checker-0.1.1.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for gdpr_compliance_checker-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ba1bbeef1b95856b4ffd27925d3157de724f50bf7457451ff8c362ee1e1e53c6
MD5 66f5a1c7dfa015a5bf538b1ce66ccfbc
BLAKE2b-256 a9fff0aa0718414bdf5faf9c41f59d1474c98e4738aef303fb0db553384cad86

See more details on using hashes here.

File details

Details for the file gdpr_compliance_checker-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gdpr_compliance_checker-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f1c8bbfad93465bbab198066cd6757da855efa7613b6e6fd58057bdd48fe5a
MD5 10ed1e618d51477a3b43b455a891464c
BLAKE2b-256 1f62fdba9aa6652f1f7ebcf31271a7c62ff1fc02602e8c81c3231dd65ed85692

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page