Retrace
Retrace your steps and try again.
Retrace provides a configurable decorator which allows you to wrap Python callables and retry them on errors or other specific conditions.
Docs
It is simple and elegant.
See the documentation at:
http://d0ugal.github.io/retrace/
Quickstart
First, pip install retrace.
import retrace
@retrace.retry
def unstable():
# ...
Boom. Done.
This function will now be retied up to 5 times if it raises an exception. You can customise how often it is retried, limit the exceptions and add validators to further verify the return value. Check out the docs for all this and more.
Release files for retrace 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| retrace-3.0.0.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| retrace-3.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 17.2 kB
Release files / retrace-3.0.0.tar.gz
| Download URL | retrace-3.0.0.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8774db5399ab056bb473052f7393449ca6e43ac610f9f3180fb88050ff2fc06b
|
|
BLAKE2b-256 checksum How to use checksums |
ce8293386fa728885e74fd620438c33deaeae363173ed4006fdd0cf0d5506872
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1
|
Release files / retrace-3.0.0-py2.py3-none-any.whl
| Download URL | retrace-3.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
472eee78292ff8c68c1243908d6cd392fa1af30109e6cf2f4510490990dc8983
|
|
BLAKE2b-256 checksum How to use checksums |
3d0f11f39d7643693a51b57f038d98d318f763f26c1c653665ad389fd468ed27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1
|