Registry /
type-stubs / chrome-devtools-protocol
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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 20MB
glibcpy 3.10–3.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())
Upgrade
Version history
0.4.0latest on PyPI · released Apr 14, 2020
Audit
Dependencies
No dependency data recorded yet.