Skip to main content

A HTTP replay library for testing.

Project description

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, 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.1.4.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

httreplay-0.1.4.macosx-10.8-x86_64.exe (72.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for httreplay-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f332c95f3c84f6867e32a61031386bead99ad378416bdef383a12c98346d66df
MD5 7da38f272e87e6af8843739d8372a3ba
BLAKE2b-256 c3e407097a65d738be4690d977e845f2a041658811b9bc92b6e1c41996695e81

See more details on using hashes here.

Provenance

File details

Details for the file httreplay-0.1.4.macosx-10.8-x86_64.exe.

File metadata

File hashes

Hashes for httreplay-0.1.4.macosx-10.8-x86_64.exe
Algorithm Hash digest
SHA256 22649b2ef2f96aedc576b48c7063d52d67c2f49a8667742bad47dfd9c81a7c95
MD5 834c7b8da12cfcdf902712768f6c9ecf
BLAKE2b-256 a57e41e5db5f98cbe19a8cc9bcb6a83250c2e546406ad83ecc0232be7623159c

See more details on using hashes here.

Provenance

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