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
File details
Details for the file chrome-devtools-protocol-0.3.0.tar.gz
.
File metadata
- Download URL: chrome-devtools-protocol-0.3.0.tar.gz
- Upload date:
- Size: 121.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3e076432a2f615dd093bf1c82c1d8ae051c4487d17463f0737e35e4cc0884de |
|
MD5 | 26850d1206bf60baeda78a87598c9a57 |
|
BLAKE2b-256 | 1338dc7291c4c8dc38689e13093b0c78140178265aec3852a38a9226523ab7a5 |