Python type wrappers for Chrome DevTools Protocol (CDP)
Project description
PyCDP
Python Chrome DevTools Protocol (shortened to PyCDP) is a library that provides Python wrappers for the types, commands, and events specified in the Chrome DevTools Protocol.
The Chrome DevTools Protocol provides for remote control of a web browser by sending JSON messages over a WebSocket. That JSON format is described by a machine-readable specification. This specification is used to automatically generate the classes and methods found in this library.
You could write a CDP client by connecting a WebSocket and then sending JSON objects, but this would be tedious and error-prone: the Python interpreter would not catch any typos in your JSON objects, and you wouldn't get autocomplete for any parts of the JSON data structure. By providing a set of native Python wrappers, this project makes it easier and faster to write CDP client code.
This library does not perform any I/O! In order to maximize flexibility, this library does not actually handle any network I/O, such as opening a socket or negotiating a WebSocket protocol. Instead, that responsibility is left to higher-level libraries, for example trio-chrome-devtools-protocol.
For more information, see the complete documentation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file chrome-devtools-protocol-0.4.0.tar.gz
.
File metadata
- Download URL: chrome-devtools-protocol-0.4.0.tar.gz
- Upload date:
- Size: 122.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.5 Linux/5.3.0-40-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb26b540c2e0bc2e35021e2347e5af2b0c5b9f8d0f5a2136dc64d1ae7e7e9328 |
|
MD5 | 8a4a69793fc3a0a4ac1a8c7fa0b3689a |
|
BLAKE2b-256 | 7949c47ed78b619abe76d76032af2739a3ea2b4ee96b7400ea2f09b5ae7cbacb |
File details
Details for the file chrome_devtools_protocol-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: chrome_devtools_protocol-0.4.0-py3-none-any.whl
- Upload date:
- Size: 148.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.5 Linux/5.3.0-40-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edf6216e4ee65ab440d220b36f7d4edf36f1bc9a52ec75bfb6556e5bd71a6561 |
|
MD5 | 54bfe5da7906d0b54199b04526d0874f |
|
BLAKE2b-256 | 0e7c9943545beb6f1edd2aef5344a146567fd54f500e2e2d9b32d149af69034e |