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.5.tar.gz
(7.5 kB
view details)
Built Distribution
File details
Details for the file httreplay-0.1.5.tar.gz
.
File metadata
- Download URL: httreplay-0.1.5.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c837b387c2f67c39411a954c304716461c9efc49183329259ebb6adac83af0d |
|
MD5 | d2741c4d187d9078e2e822cbd829087e |
|
BLAKE2b-256 | 0017ab800e179b8b164f9365f38b246eee4fb878d0efedd51c9baf32ab2bc70a |
Provenance
File details
Details for the file httreplay-0.1.5.macosx-10.9-x86_64.tar.gz
.
File metadata
- Download URL: httreplay-0.1.5.macosx-10.9-x86_64.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 658a4a0ddeeaf5d58d3244f56814479f42b0f547880c2c4a8963abb3447e5028 |
|
MD5 | 0221781db623e7b413fd098b6289bb9d |
|
BLAKE2b-256 | 5218e3ffac5ab7f9b794c7d156d0620d44fbfeeaa830bc4a65fc604c8d096a8e |