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
Install from PyPI
pip install retryrequests
Install from PPA (for Ubuntu)
sudo add-apt-repository ppa:thombashi/ppa sudo apt update sudo apt install python3-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.3.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for retryrequests-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e7e53a83586be880effa09283b75b024b26edb0e8aff38344876102dbd5a0f2 |
|
MD5 | 11e3aa9350b05ef0d78e9d26b6c13645 |
|
BLAKE2b-256 | 9c0ea61a2c47684922c4d0878c323803d332f8a2509ac8490e25b0e19448b026 |