Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A HTTP replay library for testing.

Project Description

JANUARY 2015 :: HTTREPLAY IS NOW END-OF-LIFED. I strongly recommend using vcr.py, which these days has a larger community, a richer feature set, and is better maintained. I will keep HTTReplay on PyPi for now just so that nobody gets caught out. But please do migrate to vcr.py when you have an opporunity. Thanks!

HTTReplay is a Python HTTP (and HTTPS!) replay library for testing.

The library supports the recording and replay of network requests made via httplib, requests >= 1.2.3 (including requests 2.x), and urllib3 >= 0.6.

Here’s a very simple example of how to use it:

import requests
from httreplay import replay

with replay('/tmp/recording_file.json'):
    result = requests.get("http://example.com/")
    # ... issue as many requests as you like ...
    # ... repeated requests won't hit the network ...

There’s a lot more you can do. Full documentation is available from the httreplay github page.

Release History

Release History

This version
History Node

0.2.0

History Node

0.1.9

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
httreplay-0.2.0.macosx-10.10-x86_64.exe (74.0 kB) Copy SHA256 Checksum SHA256 any Windows Installer Jan 27, 2015
httreplay-0.2.0.tar.gz (8.5 kB) Copy SHA256 Checksum SHA256 Source Jan 27, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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