Skip to main content

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.

Project details


Download files

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

Source Distribution

httreplay-0.2.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

httreplay-0.2.0.macosx-10.10-x86_64.exe (74.0 kB view details)

Uploaded Source

File details

Details for the file httreplay-0.2.0.tar.gz.

File metadata

  • Download URL: httreplay-0.2.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for httreplay-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dce205393b19f9a6e052ec84104bdbe4f10b70f7db7a40b09a2b3c904760b90c
MD5 9a0baa6a510905acf95e1aca6db6a6df
BLAKE2b-256 a2bb3b08945d995d559051f4a985f823af38c4bec8fec6a42222a211f2187376

See more details on using hashes here.

File details

Details for the file httreplay-0.2.0.macosx-10.10-x86_64.exe.

File metadata

File hashes

Hashes for httreplay-0.2.0.macosx-10.10-x86_64.exe
Algorithm Hash digest
SHA256 7feefbc756e7f25315718b693978113b49ca989397d3c6f9e428637e604251c4
MD5 d6ac0100fac5f0833f9d0a978b975660
BLAKE2b-256 b453dfca7d0894dc9935d120d1887783a6c261cf4c155d7a21e69592c0b23c6a

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