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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| avaril-1.1.1.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| avaril-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.8 kB
Release files / avaril-1.1.1.tar.gz
| Download URL | avaril-1.1.1.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71f998c2f5399d7df5355d0ce8d84be8324ea783541c869bcd9f59d7428f37ad
|
|
BLAKE2b-256 checksum How to use checksums |
e05f5eb5336c0ac3a1e8fbee18ca73f0c4578ab6485566afecb0104bbcb62aa2
|
| 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.1-py3-none-any.whl
| Download URL | avaril-1.1.1-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3b89b3e0024d6538abf93f486851b3e5ce53aae7bf321cc4839fdec3198e2ad
|
|
BLAKE2b-256 checksum How to use checksums |
19d6c7657b9dd62720870e85975a5692cd3c5a7ae7b1d1e9d0c7a6ae97eec107
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|