requests retry on exceptions
Project description
Installation
$ [sudo] pip install requests-retry-on-exceptions
Features
- default
backoff_factor
:0.1
- default
retries
:3
- default
exceptions
:http.client.IncompleteRead
requests.exceptions.ChunkedEncodingError
requests.exceptions.ConnectionError
requests.exceptions.HTTPError
requests.exceptions.ReadTimeout
requests.exceptions.SSLError
requests.exceptions.TooManyRedirects
ssl.SSLEOFError
urllib3.exceptions.MaxRetryError
urllib3.exceptions.ProtocolError
urllib3.exceptions.ReadTimeoutError
Examples
import requests_retry_on_exceptions as requests
r = requests.get('https://pypi.org/project/django/')
options:
r = requests.get(url,exceptions=(requests.exceptions.SSLError,),backoff_factor=0.1,retries=3)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for requests-retry-on-exceptions-2020.10.30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51967ae33c1f877e290e744125671b5b212223968abf1ddbda2c0be4f9db5a3c |
|
MD5 | bca660ceb89174fc910f56027b905bb0 |
|
BLAKE2b-256 | f636f12f6f9b44b418b22cc48d4bd0111bffedaf54422c939e1a19de1a470ed5 |