Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page