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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a593d26424cfb1843ce3b023d1afe20a06cc9df24fef6fd74dd2a19a781ffca7 |
|
MD5 | b3930fc196ce9fc4f2cc8e92da7a8552 |
|
BLAKE2b-256 | ff98865b9ee3950c770d9692641703680511d19f4abb4d85fdb79fbb845be984 |