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.
Basic usage
Transparently perform retries on failures:
from kaioretry import retry, aioretry
@retry(exceptions=ValueError, tries=2)
def some_func(...):
...
@aioretry(exceptions=(ValueError, SomeOtherError), tries=-1, delay=1)
async def some_coroutine(...):
...
Documentation
If you care to read more, a more lengthy documentation is available on readthedocs.
Feedback welcome.
Project details
Release history Release notifications | RSS feed
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.10.2.tar.gz
(18.8 kB
view hashes)
Built Distribution
kaioretry-0.10.2-py3-none-any.whl
(20.6 kB
view hashes)
Close
Hashes for kaioretry-0.10.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 231bc8d6a1631850616afbd5589b05dd1447c801941add632f26f667f7edf3e9 |
|
MD5 | d90bcaabefd100dd7d0a1bcf9f6732dc |
|
BLAKE2b-256 | 722dc693397c01704cd7f54aa4187a1b6eec5c55342f6e4bff824b73fa91d6ba |