Metadata-Version: 2.1
Name: retryrequests
Version: 0.0.2
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: 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.*
Requires-Dist: setuptools (>=38.3.0)
Requires-Dist: requests (<3.0.0,>=2.18.4)
Provides-Extra: build
Requires-Dist: twine ; extra == 'build'
Requires-Dist: wheel ; extra == 'build'
Provides-Extra: release
Requires-Dist: releasecmd (<0.1.0,>=0.0.18) ; extra == 'release'

.. 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
============================================
::

    pip install retryrequests


Dependencies
============================================
Python 2.7+ or 3.5+

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


