This repository contains a Python library for Chrome DevTools Protocol (CDP) type wrappers. It's a code generation project that creates Python bindings from official CDP specifications.
When using this project through WARP:
- Generating updated CDP bindings when Chrome DevTools Protocol changes
- Running comprehensive tests on generated code
- Building documentation for the CDP Python API
- Type checking the generated Python modules
- Code Generation Speed: Time to generate all CDP modules from JSON specs
- Test Coverage: Percentage of generated code covered by tests
- Type Safety: MyPy validation of generated type annotations
- Import Performance: Time to import generated modules
The project uses a hybrid approach:
- Primary: Poetry + Makefile (standard Python toolchain)
- Secondary: pf tasks (organizational consistency wrappers)
- Generation time for ~50 CDP domains
- Memory usage during code generation
- Test execution time across all modules
- Documentation build time
- Update CDP JSON specifications (browser_protocol.json, js_protocol.json)
- Run code generation (pf generate)
- Validate with type checking (pf typecheck)
- Run comprehensive tests (pf test)
- Build and verify documentation (pf docs)
This project is suitable for automated builds and can be integrated into larger CDP-dependent projects. The pf tasks provide simple, reliable entry points for automation systems.