Skip to main content

All in one retry and aioretry decorators

Project description

KaioRetry

KaioRetry is (yet another) retry decorator implementation, which is clearly inspired by the original retry module and is actually backward compatible with it.

I say backward because, while retry clearly did the job for me for a time, at some point I've encountered a big limitation: it did not work with asyncio coroutines. And it's been unmaintained for 6 years.

I found a few alternatives for that but none of them were both sync and async and since I did not wanted to use 2 differents modules for the same goal, I've decided to write this one, with the rule that the code duplication, between the sync and async versions, should be smartly kept to a very very strict minimum.

And here we are then.

Documentation

API Documentation is available on readthedocs: [https://kaioretry.readthedocs.io/en/latest/]

TODO List

  • Stop messing up the stack trace
  • Add unit tests pipelines
  • Write a decent README
  • Improve documentation display on the RTD
  • Lower requirements to python 3.10 if possible (and if i feel like it)
  • Lower requirements to python 3.9 if possible (and if i feel like it)

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

kaioretry-0.2.0.tar.gz (15.5 kB view hashes)

Uploaded Source

Built Distribution

kaioretry-0.2.0-py3-none-any.whl (16.9 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