A retry library for Python. This library allows:
- Creating custom strategies
- Applying hooks before and after executing function (useful for custom logging)
- Applying hook to when function raised an error (useful for incriminating metrics)
- Applying multiple retry strategies
- Fully typed
See documentation for more information.
The package is available through Pypi. You can install using pip
or any of your favorite package manager:
pip install pyretries
Or using poetry
poetry add pyretries