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.4+
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.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for retryrequests-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78ab5adada7adb8bd8dca89f9c88a809ddeae613bbae45b33f825e263745bb3f |
|
MD5 | 8ccb4737d52ceb170136a8e469b9b383 |
|
BLAKE2b-256 | 00fbeb685fd08ef4ba058dc8f6e15b615d73fdcd31075dd8d7fd62b4dc5658d1 |