A Python library that make HTTP requests with exponential back-off retry by using requests package.
Project description
Summary
A Python library that make HTTP requests with exponential back-off retry by using requests package.
Installation
pip install retryrequests
Usage
retryrequests has same interface with requests:
- Sample Code:
import json import retryrequests r = retryrequests.get("https://kctbh9vrtdwd.statuspage.io/api/v2/status.json") r.raise_for_status() print(json.dumps(r.json(), indent=4))
- Output:
{ "page": { "id": "kctbh9vrtdwd", "name": "GitHub", "url": "https://www.githubstatus.com", "time_zone": "Etc/UTC", "updated_at": "2019-03-30T07:11:24.851Z" }, "status": { "indicator": "none", "description": "All Systems Operational" } }
Dependencies
Python 3.6+
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
retryrequests-0.2.0.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file retryrequests-0.2.0.tar.gz
.
File metadata
- Download URL: retryrequests-0.2.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d82009abfbf7be105f153a4e460e24f761563743cc2de9f5e5d863b075d6ea5c |
|
MD5 | f08a388ff42ce7506e7537d49d7732ed |
|
BLAKE2b-256 | f92e52d9b552f3a26060a0ba7582108403780a053e8ab3a4e9702c2c2ac89e02 |
File details
Details for the file retryrequests-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: retryrequests-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe58b7ae12020332560616499fe8c1cb078bb274dfac8bb62d56d6fdc547fa3e |
|
MD5 | d4bd7c6d30507084cf9c8d7831fcfff6 |
|
BLAKE2b-256 | 1a930c0888a88e0dc34d06850d1598050ee9b5e98ac0748fb75353b6abd8af28 |