After much waffling, I’ve just released a new version of a #Python package that I haven’t advertised much until now, but that’s in prod with virtually every of my work projects: https://stamina.hynek.me/

It has a single purpose: to help you write correct retry logic effortlessly.

If you’ve looked at it before: it now has proper docs, support for async, and retries of arbitrary code blocks. And if you wonder what the big deal is, check out the new tutorial: https://stamina.hynek.me/en/latest/tutorial.html

stamina 24.2.0 documentation

@hynek Aha, it reminds me the https://tenacity.readthedocs.io/ project
Tenacity — Tenacity documentation

@vstinner Maybe because the main page / README mentions it twice? ;)
@hynek Oops, I just had a quick look at the API. I missed the mention of Tenacity on the homepage.