Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install chrome-remote-shell

How to install chrome_remote_shell

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install chrome-remote-shell
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.2 Available View build log
1.1 Available View build log
Windows (64-bit)
1.2 Available View build log
1.1 Available View build log
Mac OS X (10.5+)
1.2 Available View build log
1.1 Available View build log
Linux (32-bit)
1.2 Available View build log
1.1 Available View build log
Linux (64-bit)
1.2 Available View build log
1.1 Available View build log
 
Lastest release
version 1.2 on Apr 26th, 2011

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.

Subscribe to package updates

Last updated Apr 26th, 2011

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.