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 (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.1.7.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

httreplay-0.1.7.macosx-10.10-x86_64.exe (73.4 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for httreplay-0.1.7.tar.gz
Algorithm Hash digest
SHA256 87b9f5c7ce243d86ce58447840ac9e92b51c38b803bbfecca34a246f54edb527
MD5 32b35d1b8cb8d188880fa014b826013d
BLAKE2b-256 85fcb1904cc4702003e6e67429f65b4fb578464e7993b99cbb2834213ca6e54d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for httreplay-0.1.7.macosx-10.10-x86_64.exe
Algorithm Hash digest
SHA256 bd75bb8b27d48c328edcef755d1e94ffadfe5fd1b159f7f88589995f2b0c0db9
MD5 b48a0c0625f1aa67467a453275c95297
BLAKE2b-256 beefccca2b6103b1d783da5494391f384b1fab7bba9fcaa5a70103def5599fe7

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