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.6.tar.gz
(7.8 kB
view details)
Built Distribution
File details
Details for the file httreplay-0.1.6.tar.gz
.
File metadata
- Download URL: httreplay-0.1.6.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ffd5f00cfffd4f10c0d67ffca481910b23775e70f11a2ed95e554e8f5c5b0e1 |
|
MD5 | 1412c16295aff3862556900b77367972 |
|
BLAKE2b-256 | 4894bc22010988ee8b1f44e853a9cc376b84757cb724a76b0c77fb582bf27ef6 |
Provenance
File details
Details for the file httreplay-0.1.6.macosx-10.9-x86_64.exe
.
File metadata
- Download URL: httreplay-0.1.6.macosx-10.9-x86_64.exe
- Upload date:
- Size: 73.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fc5212a7b7a9e85f1e1d90b46d58e8e5a208cc9b9a21599399cb7d784291b4f |
|
MD5 | 6e80be1ecc0eecb56a72298287827481 |
|
BLAKE2b-256 | 2f1972cdae2fdeb749368b6b825b7e5ae271b9e7f9c52436282b349ccd0ce407 |