Registry / type-stubs / chrome-devtools-protocol

chrome-devtools-protocol

JSON →
library0.4.0pypypiunverified

Python type wrappers for Chrome DevTools Protocol (CDP). Provides typed classes and enums for all CDP domains. Current version 0.4.0, updated infrequently.

pip install chrome-devtools-protocol
INSTALL
IMPORT
SIG · CHROME-DEVTOOLS-PR
C
chrome-devtools-protocol
type-stubspythonv0.4.0
Install
2.1s avg
Import
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 20MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.1s · import 0.000s · 21MB
18MB installed
● package 18MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Page
from cdp.page import Page
from cdp.page import Page

Connect to a CDP endpoint (e.g., Chrome debug port) and send a command.

import asyncio from websockets import connect from cdp import Page, Network async def main(): async with connect('ws://localhost:9222/devtools/browser/...') as ws: # Send a Page.enable command await ws.send(Page.enable()) # Receive response response = await ws.recv() print(response) asyncio.run(main())
Debug
Known issues
gotchaThe package does not manage WebSocket connections. You must handle the WebSocket yourself (e.g., using websockets library).
fix
Install 'websockets' and manage WebSocket lifecycle manually.
affects: all
deprecatedThe 'event_parsers' module is deprecated; use message dispatch via domain events.
fix
Refer to the cdp.event_dispatch or use domain event classes directly (e.g., from cdp.page import Page.domContentEventFired).
affects: <=0.4.0
Upgrade
Version history
0.4.0latest on PyPI · released Apr 14, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
52 hits · last 30 days
node
44
OpenAI (training)
2
Resources
chrome-devtools-protocol — pip install chrome-devtools-protocol · libregistry