Skip to main content

urirun-cdp

The CDP (Chrome DevTools Protocol) browser-surface primitive for urirun, extracted from urirun.connectors.surfaces.cdp as a standalone, dependency-free package.

It speaks raw CDP over a WebSocket to a Chrome DevTools endpoint and exposes the small set of primitives the reversible window-snapshot is built on: reachable, navigate, evaluate, nav-history, scroll/forms round-trip. Pure stdlib — no urirun dependency — so any connector can adopt it without pulling in the backend.

Why it's its own package

extraction_audit.py --preset D reports this surface GREEN (0 OUTWARD, 0 CYCLE; stdlib only). It is consumed by URI, swappable, and reusable across connectors — the textbook case for lifting a capability primitive out of the core. The KVM connector already carries its own deployed copy (urirun_connector_kvm.cdp); this is the canonical reference implementation.

Install

pip install -e .          # editable, from this repo

Back-compat

The old import path still works via a re-export shim in the urirun package:

from urirun.connectors.surfaces import cdp   # → urirun_cdp.cdp (sys.modules shim)

So existing code and the test_kernel_adoption contract test (which guards the symbols the KVM connector relies on) keep working unchanged. That contract test skips gracefully when this package isn't installed (pytestmark = skipif(cdp is None)), matching how the connector packages are tested in their own CI rather than urirun's.

Tests

PYTHONPATH=../urirun/adapters/python python -m pytest tests/ -q

The surface's own tests live here (tests/test_cdp_surface.py); they exercise the protocol + snapshot primitives against a fake in-memory page, no real Chrome required.

License

Apache-2.0 — see LICENSE.

Metadata

Release files for urirun-cdp 0.2.1

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

Source distribution (sdist)

Source distribution for urirun-cdp 0.2.1
File Size Uploaded Provenance Actions
urirun_cdp-0.2.1.tar.gz 7.9 kB Without provenance Details for urirun_cdp-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for urirun-cdp 0.2.1
File Interpreter ABI Platform Actions
urirun_cdp-0.2.1-py3-none-any.whl Python 3 none any Details for urirun_cdp-0.2.1-py3-none-any.whl

Total release size: 14.3 kB

Release files / urirun_cdp-0.2.1.tar.gz

Download URL urirun_cdp-0.2.1.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
57703ba0cadbb9823da42c71f454814bd868a096cb0920cba3c5ced0c561b701
BLAKE2b-256 checksum
How to use checksums
740becdb982091d4be76b7e61be84e00876bf73a1c88e7d4922b44c4fe8a45e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / urirun_cdp-0.2.1-py3-none-any.whl

Download URL urirun_cdp-0.2.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8fad2acb456d9894e37d4d2977299f04c4d5ad0aa1a24a402fd417902d42429
BLAKE2b-256 checksum
How to use checksums
d674ff45acba0b38ac08698e02c06c3b8aa37e321af0e81c20195ae459d6b6c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Security for urirun-cdp 0.2.1

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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

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