Configurable elegant retrying.
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.
It is simple and elegant.
See the documentation at:
First, pip install retrace.
import retrace @retrace.retry def unstable(): # ...
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 history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for retrace-3.0.0-py2.py3-none-any.whl