Skip to main content

A Python driver for Zombie.js

Project description

A Python driver for Zombie.js, a headless browser powered by node.js.

from zombie import Browser
b = Browser()
b.visit('http://pypi.python.org/').fill('term', 'Zombie').pressButton('submit')
assert "A Python driver for Zombie.js" in b.body.text

Requires the latest node and zombie:

brew install node
curl http://npmjs.org/install.sh | sh
npm install zombie

travis

Installing

To install Zombie from PyPI:

$ pip install zombie

…or, for the latest (unstable) tip:

$ git clone https://github.com/ryanpetrello/python-zombie -b next
$ cd python-zombie && python setup.py develop

Development

Source hosted at GitHub. Report issues and feature requests on GitHub Issues.

To fix bugs or add features to zombie, a GitHub account is required.

The general practice for contributing is to fork zombie and make changes in the next branch. When you’re finished, send a pull request and your patch will be reviewed.

Tests require tox and can be run with python setup.py test.

All contributions must:

  • Include accompanying tests.

  • Include API documentation if new features or API methods are changed/added.

  • Be (generally) compliant with PEP8. One exception is that (for consistency, and to demonstrate their analogous nature) API methods on zombie.Browser should follow the camel case formatting set forth in the zombie.js API (e.g., Browser.pressButton, not Browser.press_button).

  • Not break the tests or build. Before issuing a pull request, ensure that all tests still pass across multiple versions of Python.

  • Add your name to the (bottom of the) AUTHORS file.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zombie-0.1.0a5.tar.gz (14.0 kB view details)

Uploaded Source

File details

Details for the file zombie-0.1.0a5.tar.gz.

File metadata

  • Download URL: zombie-0.1.0a5.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zombie-0.1.0a5.tar.gz
Algorithm Hash digest
SHA256 d7ca7e848aa5927fb2db0093a3d430a518cf022e16c649c7dcc116d89252734f
MD5 a49c256fc4c82e60e296cade70e276fa
BLAKE2b-256 6ac7e89712c95226b786d9828160e0824afa12a810e9688541d1e12875af3823

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page