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.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd87116171260e64c963997625df48f554e00f9ae477c52b58ce79d8a524d42e |
|
MD5 | 10a63a6adf8f4f103f4b3da89b4061cd |
|
BLAKE2b-256 | 13f4932caeb178ffcfaebeec3009a4245e9e6fc9d53c20acbc88840109a90acd |