Skip to main content

stapel-gdpr

CI coverage pypi downloads python license llms.txt

GDPR compliance: staged async data export (Art. 15/20) with status polling and download; subject-scoped erasure (Art. 17) — account, workspace, meeting, recording, document, file — each proven by one receipt per data owner that claims the subject type, with a purge SLA, timeout sweep and a subprocessor ledger behind fully_erased_by; account closure keeps its cancellable 30-day grace and produces an ErasureRequest at grace end; DSAR intake (Art. 12) with automated acknowledgement and both statutory clocks; data-owner liveness probing; inactivity closure, retention cleanup, LegalHold and ReRegistrationHash; orchestrated through an in-process GDPRProvider registry (stapel_core.gdpr.gdpr_registry) plus comm confirmation (gdpr.section.erased) for remote owners.

Part of the Stapel framework — composable Django apps that deploy as a monolith or as microservices without changing module code.

Install

pip install stapel-gdpr

At a glance

Fact Value
Version 0.5.4
Python >=3.11 (3.11, 3.12, 3.13, 3.14)
HTTP operations 15
Config axes 3
Usage surface 18
Extension points 4
Error codes 57
Fleet dependencies stapel-core

Documentation

OpenAPI · capabilities.json · llms.txt (for agents)

Quick start

# settings.py
INSTALLED_APPS = [
    ...
    'stapel_gdpr',
]

MIDDLEWARE = [
    ...
    # After authentication: refuses every request of an account being erased,
    # whatever a still-valid token claims.
    'stapel_gdpr.guards.AccountClosureGuardMiddleware',
]

STAPEL_GDPR = {
    # Every store holding personal data, mapped to the subjects it holds it
    # about. Erasure is only ever reported complete when each of these
    # returned a deletion receipt, so an owner missing here is a store that
    # quietly keeps the data. `manage.py check` fails while this is empty.
    #
    # These are the names the LIBRARIES declare, not app labels: the `cdn`
    # app owns `media`, the `profiles` app owns `profile`. A name no
    # installed library declares is inferred remote and times out in
    # silence, so `manage.py check` refuses it (gdpr.E009), and an installed
    # owner missing from this map — a store no erasure ever waits for — is
    # gdpr.E010.
    'DATA_OWNERS': {
        'auth': ['account'],
        'profile': ['account'],
        'media': {'subject_types': ['account', 'workspace', 'file'],
                  'kind': 'remote'},
    },
    'DATA_OWNERS_VERSION': '2026-09-07.1',
    # How the user's sessions are revoked at closure. Auto-detected when
    # stapel-auth is installed; without any seam, closure is refused rather
    # than performed with live tokens left behind.
    'SESSION_REVOKER': 'stapel_auth.sessions.services.SessionService.revoke_all',
}

Run manage.py check after wiring: a missing or stale data-owner inventory, an owner name no installed library declares, an installed owner the inventory omits, hash rows written outside store_hashes, and every open escape hatch are reported there rather than discovered in an audit.

Bus events

Emits

| user.deleted | schema | All user PII permanently deleted after grace period. Every package storing user | | user.deletion_cancelled | schema | Account closure cancelled during the grace period; every reversible reaction to user.deletion_initiated must be lifted. | | user.deletion_initiated | schema | Account closure started. 30-day grace period begins; account is deactivated. | | user.export_ready | schema | Data export archive is ready for download. | | user.sessions_revoked | schema | Closure revoked every session and access JTI of the user. |

License

MIT — see LICENSE.


This page is assembled by stapel-readme from docs/readme.md plus the contract artifacts in docs/. Edit the prose in docs/readme.md; the badges, facts and links above and below it are generated — do not hand-edit README.md.

Release files for stapel-gdpr 0.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stapel-gdpr 0.5.4
File Size Uploaded
stapel_gdpr-0.5.4.tar.gz 166.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stapel-gdpr 0.5.4
File Interpreter ABI Platform
stapel_gdpr-0.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 313.7 kB

Release files / stapel_gdpr-0.5.4.tar.gz

Download URL stapel_gdpr-0.5.4.tar.gz
Size 166.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c1a0b0565a73c7e4fe2986ae1a5d62c7f3b291e4b647ef780edc9c9258b92483
BLAKE2b-256 checksum
How to use checksums
eee2be3f8e5b8727f679c2fa4c44622653a95370ebc4b4137d71ef90d7f7eb4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

Release files / stapel_gdpr-0.5.4-py3-none-any.whl

Download URL stapel_gdpr-0.5.4-py3-none-any.whl
Size 146.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5c715a55ea0643b3e71cef318ad92f072eb0d658732afc3baaa41364c7d1c13
BLAKE2b-256 checksum
How to use checksums
1eec2ef1b8c0be089bd88a6119957d7345701a5ee236bd0fea0e8de8c09dac37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

Release history Release notifications | RSS feed

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.6.0

2 release files

0.5.9

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.5

2 release files

This release

0.5.4 This release

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.11

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.1

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