Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

retryrequests

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

retryrequests

A Python library that make HTTP requests with exponential back-off retry by using requests package.

  • 0.2.0
  • Source
  • PyPI
  • Socket score

Maintainers
1

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

Summary

A Python library that make HTTP requests with exponential back-off retry by using requests <https://docs.python-requests.org/en/master/>__ package.

.. image:: https://badge.fury.io/py/retryrequests.svg :target: https://badge.fury.io/py/retryrequests :alt: PyPI package version

.. image:: https://img.shields.io/pypi/pyversions/retryrequests.svg :target: https://pypi.org/project/retryrequests :alt: Supported Python versions

Installation

::

pip install retryrequests

Usage

retryrequests has same interface with requests:

: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"
        }
    }

Dependencies

Python 3.6+

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc