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.0.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.0.0
File Size Uploaded
avaril-1.0.0.tar.gz 5.1 kB Details

Built distribution (wheel)

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

Total release size: 9.4 kB

Release files / avaril-1.0.0.tar.gz

Download URL avaril-1.0.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
48dd576dcc659b61081dccc3e71aef567094f5ddc5079cf88b3cca548abcc442
BLAKE2b-256 checksum
How to use checksums
a3fc09ca01b4878f67ab4b296ea598357f7fe11d2dac250092d2944723464b13
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.0.0-py3-none-any.whl

Download URL avaril-1.0.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
292e41b6f4c9548ddda6e32e5d0322c6cd2f84f16e960360dea6d85a7160259e
BLAKE2b-256 checksum
How to use checksums
7f96387f4bccad9d1738240aa401a13c3cf198a2552aacca378954759d3338ef
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

1.1.0

2 release files

This release

1.0.0 This release

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