Yet another retry utility in Python
Project description
avereno
Yet another retry utility in Python, avereno being the Malagasy word for retry.
Usage
$ python3 -m pip install avereno
$ python3
>>> from random import random
>>> def a_sometimes_failing_hello():
... if random() < 0.5:
... print("Hello!")
... else:
... raise RuntimeError()
>>> from avereno import retry
>>> retry(a_sometimes_failing_hello, on_retry=lambda __1, __2: print("Oops..."))
Oops...
Oops...
Oops...
Oops...
Hello!
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
avereno-0.1.0-py3.9.egg
(4.7 kB
view hashes)