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-2019.4.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9034e088a286c88bcd6e47ae8386af6836794d83e9243618154788b2cd4420a |
|
MD5 | d9a3ab61466aada230afd603c0fe81f5 |
|
BLAKE2b-256 | 3b0c947ce2924c0da3574968d952e3584c3eaa5854b6e69c09605f5a0295e49c |