{"id":23425,"library":"chrome-devtools-protocol","title":"Chrome DevTools Protocol","description":"Python type wrappers for Chrome DevTools Protocol (CDP). Provides typed classes and enums for all CDP domains. Current version 0.4.0, updated infrequently.","status":"active","version":"0.4.0","language":"python","source_language":"en","source_url":"https://github.com/hyperiongray/python-chrome-devtools-protocol","tags":["chrome","devtools","cdp","websocket"],"install":[{"cmd":"pip install chrome-devtools-protocol","lang":"bash","label":"Default install"}],"dependencies":[],"imports":[{"wrong":"from cdp.page import Page","symbol":"Page","correct":"from cdp.page import Page"}],"quickstart":{"code":"import asyncio\nfrom websockets import connect\nfrom cdp import Page, Network\n\nasync def main():\n    async with connect('ws://localhost:9222/devtools/browser/...') as ws:\n        # Send a Page.enable command\n        await ws.send(Page.enable())\n        # Receive response\n        response = await ws.recv()\n        print(response)\n\nasyncio.run(main())","lang":"python","description":"Connect to a CDP endpoint (e.g., Chrome debug port) and send a command."},"warnings":[{"fix":"Install 'websockets' and manage WebSocket lifecycle manually.","message":"The package does not manage WebSocket connections. You must handle the WebSocket yourself (e.g., using websockets library).","severity":"gotcha","affected_versions":"all"},{"fix":"Refer to the cdp.event_dispatch or use domain event classes directly (e.g., from cdp.page import Page.domContentEventFired).","message":"The 'event_parsers' module is deprecated; use message dispatch via domain events.","severity":"deprecated","affected_versions":"<=0.4.0"}],"env_vars":null,"search_vec":"'0.4.0':23 'cdp':11,19,28 'chrome':1,8,26 'class':14 'current':21 'devtool':2,9,27 'domain':20 'enum':16 'infrequ':25 'protocol':3,10 'provid':12 'python':4 'type':5,13 'updat':24 'version':22 'websocket':29 'wrapper':6","created_at":"2026-05-01T08:07:43.017290+00:00","updated_at":"2026-05-01T08:07:43.017290+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'Page' from 'cdp.page' (/tmp/tmpd9jrxn28/venv/lib/python3.12/site-packages/cdp/page.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.4.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/hyperiongray/python-chrome-devtools-protocol","docs":null,"changelog":null,"pypi":"https://pypi.org/project/chrome-devtools-protocol/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}