I didn't know about
stamina.
I like it a lot at first glance.
Thanks for telling me.
Compared to Backoff, it has docs, and you don't need to tell it each time you want exponential backoff.
(Exponential backoff is what you usually want when you don't want a fixed delay.)
You can use Tenacity directly when you need something more complex.
https://github.com/hynek/stamina