Skip to main content

This library makes it easy to communicate with the Google Chrome remote debugging shell from Python. To make the shell available, start Chrome with this option:

google-chrome --remote-shell-port=9222

Then you can connect from Python through code like this:

>>> import chrome_remote_shell
>>> shell = chrome_remote_shell.open(port=9222)
>>> shell.request('DevToolsService', command='ping')
{u'data': u'ok', u'command': u'ping', u'result': 0}

The protocol is described in detail at:

http://code.google.com/p/chromedevtools/wiki/ChromeDevToolsProtocol

As a convenience, the shell connection object offers a method that, by injecting JavaScript into the first tab, commands Chrome to open a URL in a new tab:

shell.open_url('http://www.aldaily.com/')

CHANGELOG

2009 Feb 26. Added a conditional import of simplejson so that the module runs under Python 2.5.

Metadata

Release files for chrome_remote_shell 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chrome_remote_shell 1.2
File Size Uploaded Provenance Actions
chrome_remote_shell-1.2.tar.gz 2.1 kB Without provenance Details for chrome_remote_shell-1.2.tar.gz

Release files / chrome_remote_shell-1.2.tar.gz

Download URL chrome_remote_shell-1.2.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
694d672937341fa0318c710d5712f38357aac1e49d78f053595f7e3a1a7adb72
BLAKE2b-256 checksum
How to use checksums
913893602a05746810c4947544cb193dcd3d5017663df08b74687394c9d6677f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for chrome_remote_shell 1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page