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+
Release files for retryrequests 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| retryrequests-0.2.0.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| retryrequests-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / retryrequests-0.2.0.tar.gz
| Download URL | retryrequests-0.2.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d82009abfbf7be105f153a4e460e24f761563743cc2de9f5e5d863b075d6ea5c
|
|
BLAKE2b-256 checksum How to use checksums |
f92e52d9b552f3a26060a0ba7582108403780a053e8ab3a4e9702c2c2ac89e02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / retryrequests-0.2.0-py3-none-any.whl
| Download URL | retryrequests-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe58b7ae12020332560616499fe8c1cb078bb274dfac8bb62d56d6fdc547fa3e
|
|
BLAKE2b-256 checksum How to use checksums |
1a930c0888a88e0dc34d06850d1598050ee9b5e98ac0748fb75353b6abd8af28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|