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.9.1.tar.gz
(18.4 kB
view hashes)
Built Distribution
kaioretry-0.9.1-py3-none-any.whl
(19.8 kB
view hashes)
Close
Hashes for kaioretry-0.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 804825323d079c386542f61f3ec2f03bc117deafd340217c396c1bb5c4a67826 |
|
MD5 | 78b87132f5e86bd9bec4200ec545ac01 |
|
BLAKE2b-256 | 14630fde4ee42e0007cb67de162d8f8635786f6ae73cd9c273537f69b46f2de0 |