Skip to main content

A HTTP replay and mocking library for testing.

Project description

HTTReplay is a Python HTTP (and HTTPS!) replay/mocking 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.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

httreplay-0.1.3.macosx-10.8-x86_64.exe (72.5 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for httreplay-0.1.3.tar.gz
Algorithm Hash digest
SHA256 32c11e3165856da3a5990c8c89860efdd0aba6b125898a9c3b3a365b7ca8f316
MD5 fef66a521d6845523d0bdf70d95c95a1
BLAKE2b-256 e90bb6d499773f97776dcfb3b8c77683f878c8dd24d5e087fb3c5a3119f13fc0

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for httreplay-0.1.3.macosx-10.8-x86_64.exe
Algorithm Hash digest
SHA256 f1325d2d3feefe90160869f4232830d0f1e9d6e0f7004d2fd06d05b0e65ae552
MD5 2c1bc26ef1b72ca7593dce66bb20f430
BLAKE2b-256 76803c4024ee3def9ee3cf029e9f07555921a6b4f1f5bdf5a23dddd4721d580f

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