Avaril — DPDPA consent management
Avaril is a privacy governance layer for building software that meets its legal obligations by design. It gives teams a privacy framework that fits into the software development lifecycle.
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_cookie_config()
for purpose in config["consent"]["purposes"]:
print(purpose["title"])
result = client.record_cookie_consent(
event_id="b1f2...",
subject_id="anonymous-subject-123",
preferences={"analytics": True, "marketing": False},
)
print("duplicate" if result["duplicate"] else "recorded")
client.withdraw_cookie_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 2.0.0
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-2.0.0.tar.gz | 20.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| avaril-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.7 kB
Release files / avaril-2.0.0.tar.gz
| Download URL | avaril-2.0.0.tar.gz |
|---|---|
| Size | 20.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72454bfc1d787ab8ef39a712a0d4c0be875f78d1d736c3a93d4f7503e95faad1
|
|
BLAKE2b-256 checksum How to use checksums |
3be73a14e21e95a769c9c6c11e45871fc536caaf9dfc8adfc66eec5a77c6c140
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / avaril-2.0.0-py3-none-any.whl
| Download URL | avaril-2.0.0-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c31c047e292e6512c96452dc47db0e1ad7426cb3a94b8fd89f0d58dcaf73001a
|
|
BLAKE2b-256 checksum How to use checksums |
201f721fe2f4f22fadaf0178ff2817c98bf7778e9bd8eeaaf70efb7f7e05ceb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|