This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This (very experimental) library allows you to install replacement stubs for httplib methods which record interactions with remote servers, and then play them back. Because urllib depends on httplib functionality, replaylib will record and play back urllib interactions as well.

It is intended to allow streamlined tests for services which interact with remote services: e.g. payment processors, shipping APIs, etc. To use it, just:

  1. Run your test suite while recording with replaylib.
  2. On subsequent runs, play back from replaylib. Tests will run faster, and won’t require external services.

It is fully tested, with 100% line and branch coverage, and works well with all APIs we have tried it on “in the wild”.

Note Use at your own risk!


Simple as:

$ easy_install replaylib

Or if you prefer, download the source and then:

$ python build
$ python install


>>> import replaylib
>>> import urllib
>>> replaylib.start_record()
# Do some stuff with urllib.
>>> urllib.urlopen('')
>>> replaylib.stop_record('activity.pkl')
>>> replaylib.start_playback('activity.pkl')
# Won't actually make a request to
>>> urllib.urlopen('')
>>> replaylib.stop_playback()

Nose Plugin

ReplayLib also comes with a nose plugin to make recording and playing back the interactions used by your test suites even simpler:

$ nosetests --replaylib-record=test.pkl
$ nosetests --replaylib-playback=test.pkl


ReplayLib is released under the GNU General Public License (GPL). See the LICENSE file for full text of the license.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
replaylib-0.1-py2.6.egg (21.6 kB) Copy SHA256 Checksum SHA256 2.6 Egg Jun 22, 2010
replaylib-0.1.tar.gz (20.6 kB) Copy SHA256 Checksum SHA256 Source Jun 22, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting