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())

Contents๏ƒ

Indices and tables๏ƒ