A Python library for HTTP requests using requests package with exponential back-off retry.
Project description
Summary
A Python library for HTTP requests using requests package with exponential back-off retry.
Usage
- 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" } }
Installation
pip install retryrequests
Dependencies
Python 2.7+ or 3.5+
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.0.2.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for retryrequests-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a83c1e69cd631e5214616ccf3bc73fc745208d610369286723d705d52ffb0783 |
|
MD5 | 7fdc2196c131645ed8875e0fa371fba4 |
|
BLAKE2b-256 | 787456b7b4e31ef72ab8c7133c2d73c05b1607c7e8e3ff10710eb8e0c137a99e |