Skip to main content

Easy mode for Tenacity.

Project description

stamina

PyPI - Version PyPI - Python Version License: MIT

Tenacity is an amazing and beautifully composable toolkit for handling retries that I've been using it for years. In practice, I've found myself to use only very few knobs and wished it wouldn't erase the types of the callables that I decorate with @tenacity.retry.

stamina is a very thin layer around Tenacity that I've been copy-pasting between my projects for a long time:

If you need more sophisticated features, you probably should use Tenacity directly. Of course, it's possible that I'll add more features that I need.

License

stamina is written by Hynek Schlawack and distributed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stamina-22.1.0.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

stamina-22.1.0-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

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