get_retries

Adding retries to Requests.get() with exponential backoff.
Retry unsuccessful GET requests after waiting for a specific time interval. With each unsuccessful request, the time interval increases exponentially (it doubles). The undertaking is declared ultimately unsuccessful when the time interval gets bigger than a maximum backoff value.
Install
pip install get_retries
Usage
import get_retries
# max_backoff: maximum interval to wait in seconds
response = get_retries.get('https://wikipedia.com', max_backoff=32)
if response:
print(response.status_code)
For more information check out the code.
License
MIT.
Release files for get-retries 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| get_retries-0.1.1.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| get_retries-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.5 kB
Release files / get_retries-0.1.1.tar.gz
| Download URL | get_retries-0.1.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
120bf58648780b5ce3ddc8ad697079e6082ef2f298cb9adff449b08cc0485477
|
|
BLAKE2b-256 checksum How to use checksums |
87afd314c580e1f36b346498fc263f38c5442bad814cf55d339b579bf7d53984
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
|
Release files / get_retries-0.1.1-py3-none-any.whl
| Download URL | get_retries-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ad591cc0aeabf1fc970bbb004f85daad1668b321035215cd8dc4d836778b12b
|
|
BLAKE2b-256 checksum How to use checksums |
ca8461fa80bfd47931cee20fc3601ddc0b547f6124f69e85c519b922d59e5aad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
|