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
- 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.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.1.0.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for retryrequests-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea3b344d98a0bca98f102c50b43a89d7a4c11ea2f7c55d445c74d34428473f6 |
|
MD5 | edf7533dd9010cdb6c169c963774bf3c |
|
BLAKE2b-256 | e329e91e77e5dd6a6fd66e6f7a2bab315073cbc151b71649605e8396468c3bc8 |