pypecdp - Chrome DevTools Protocol over POSIX Pipes๏
pypecdp is a Python library for Chrome automation using the Chrome DevTools Protocol (CDP) over POSIX pipes.
Key Features๏
๐ Direct POSIX pipe communication (no WebSockets, no ports)
โก Fully async with asyncio
๐ชถ Minimal dependencies (only
deprecated)๐ Secure by default (local pipes only)
๐งน Automatic lifecycle management
๐ฅท No bot signatures - raw CDP with user in full control
Quick Start๏
Installation:
pip install pypecdp
Basic usage:
import asyncio
from pypecdp import Browser
async def main():
browser = await Browser.start(headless=True)
tab = await browser.navigate("https://example.com")
h1 = await tab.wait_for_elem("h1")
print(await h1.text())
await browser.close()
asyncio.run(main())