duckduckgo-autoconsent-py
Pre-built DuckDuckGo autoconsent JS bundle for use with Playwright — no Node.js required.
The JS assets are baked into the wheel at publish time. Installing this package gives you the bundle and CMP rules as Python strings, ready to inject into any Playwright page.
Installation
pip install duckduckgo-autoconsent-py
Usage
from duckduckgo_autoconsent import bundle, rules_json
# Inject into a Playwright page after navigation
await page.add_script_tag(content=bundle())
await page.evaluate(
"""(args) => new Promise(resolve => {
window.__acResolve = resolve;
window.autoconsentReceiveMessage({
type: 'initResp',
config: { autoAction: 'optOut' },
rules: { autoconsent: JSON.parse(args.rules_json) }
});
setTimeout(() => resolve('timeout'), args.timeout_ms);
})""",
{"rules_json": rules_json(), "timeout_ms": 3000},
)
Versioning
The package version mirrors the bundled @duckduckgo/autoconsent npm version.
duckduckgo-autoconsent-py==16.55.0 bundles @duckduckgo/autoconsent@16.55.0.
License
MPL-2.0 — same as the upstream autoconsent library.
Metadata
Release files for duckduckgo-autoconsent-py 16.55.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 | Provenance | Actions |
|---|---|---|---|---|
| duckduckgo_autoconsent_py-16.55.0.tar.gz | 140.6 kB | Without provenance | Details for duckduckgo_autoconsent_py-16.55.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| duckduckgo_autoconsent_py-16.55.0-py3-none-any.whl | Python 3 | none | any | Details for duckduckgo_autoconsent_py-16.55.0-py3-none-any.whl |
Total release size: 280.8 kB
Release files / duckduckgo_autoconsent_py-16.55.0.tar.gz
| Download URL | duckduckgo_autoconsent_py-16.55.0.tar.gz |
|---|---|
| Size | 140.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3d56fad5913ca7ddbb1aff0c2b179f8e00d244059788e29ced5e219561e8550
|
|
BLAKE2b-256 checksum How to use checksums |
2892de0b1e1d8f68da7285b947ba2189179bb9b63eae14575f5dfb3c5848c19b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / duckduckgo_autoconsent_py-16.55.0-py3-none-any.whl
| Download URL | duckduckgo_autoconsent_py-16.55.0-py3-none-any.whl |
|---|---|
| Size | 140.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b99ea2c5e49dbb4df173e40ca77d5b08b67a76b5f0f256935b625027e6240893
|
|
BLAKE2b-256 checksum How to use checksums |
97e019c93002b7dc0264eec45110289ea5f7e36b93b51253f10b832c47b1b8a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for duckduckgo-autoconsent-py 16.55.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.