Skip to main content

Avaril — DPDPA consent management

Client for the Avaril public SDK API (/api/sdk/*), authenticated with a publishable key (av_pk_*). Zero dependencies (stdlib only).

from avaril import AvarilClient

client = AvarilClient("av_pk_live_...")

config = client.fetch_config()
for purpose in config["consent"]["purposes"]:
    print(purpose["title"])

result = client.record_consent(
    event_id="b1f2...",
    subject_id="anonymous-subject-123",
    preferences={"analytics": True, "marketing": False},
)
print("duplicate" if result["duplicate"] else "recorded")

client.withdraw_consent(event_id="c3d4...", subject_id="anonymous-subject-123")

Errors are raised as avaril.errors.AvarilError carrying the API's code/message and the HTTP status. All methods return the parsed JSON response bodies as dicts.

Metadata

Release files for avaril 1.1.0

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

Source distribution (sdist)

Source distribution for avaril 1.1.0
File Size Uploaded
avaril-1.1.0.tar.gz 13.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for avaril 1.1.0
File Interpreter ABI Platform
avaril-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.1 kB

Release files / avaril-1.1.0.tar.gz

Download URL avaril-1.1.0.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
72e1499a707cc418651ffbda0211cc4355d069056c83b7de9868d3c98fde65d1
BLAKE2b-256 checksum
How to use checksums
5e4f56ec97117d59b7b96850cf1141e371cba5425995bd7f1c5a7ee80f686afc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / avaril-1.1.0-py3-none-any.whl

Download URL avaril-1.1.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
045136e0c5c7f3e703cee5201b55e33668edf87ea757a9d304cb15c9cf5f542f
BLAKE2b-256 checksum
How to use checksums
f27ed01074b1edb75112036dad4b1cccb0c96f797766586f1feee3cfe5d7e8f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

2.0.0

2 release files

1.1.1

2 release files

This release

1.1.0 This release

2 release files

1.0.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