Skip to content
A Python library for HTTP requests using requests package with exponential back-off retry.
Python Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
requirements
retryrequests
.gitignore
LICENSE
MANIFEST.in
Makefile
README.rst
pylama.ini
pyproject.toml
setup.cfg
setup.py

README.rst

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+

You can’t perform that action at this time.