Metadata-Version: 2.1
Name: retryrequests
Version: 0.0.3
Summary: A Python library for HTTP requests using requests package with exponential back-off retry.
Home-page: https://github.com/thombashi/retryrequests
Author: Tsuyoshi Hombashi
Author-email: tsuyoshi.hombashi@gmail.com
License: MIT License
Project-URL: Source, https://github.com/thombashi/retryrequests
Project-URL: Tracker, https://github.com/thombashi/retryrequests/issues
Keywords: requests,retry
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
Provides-Extra: build
Provides-Extra: release
License-File: LICENSE

.. contents:: **retryrequests**
   :backlinks: top
   :depth: 2


Summary
============================================
A Python library for HTTP requests using requests package with exponential back-off retry.


Usage
============================================

:Sample Code:
    .. code-block:: python

        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:
    .. code-block:: json

        {
            "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+

- `requests <http://python-requests.org/>`__


