
Package index
-
retry() - Retry a function when it fails
-
stop_never()stop_after_attempt()stop_after_delay()stop_before_delay()stop_any()stop_all() - Stop conditions
-
wait_fixed()wait_none()wait_exp()wait_exp_jitter()wait_rand()wait_chain()wait_combine() - Wait strategies
-
retry_all()retry_never()retry_if_error()retry_if_error_message()retry_if_result() - Retry conditions
-
before_sleep_none()before_sleep_log() - Run a hook before
retry()sleeps -
after_sleep_none()after_sleep_log() - Run a hook after
retry()sleeps -
after_sleep_base()after_sleep_fn()before_sleep_base()before_sleep_fn()retry_base()retry_fn()wait_base()wait_fn()stop_base()stop_fn() - Write your own stop, wait, retry and hook strategies
-
async_retry() - Retry a function without blocking
-
lru_cache()cache()disk_cache() - Cache function results
-
async_lru_cache()async_cache()async_disk_cache() - Cache the results of asynchronous functions
-
circuit_breaker() - Stop calling a function that keeps failing
-
async_circuit_breaker() - Stop calling an asynchronous function that keeps failing
-
timeout_r()timeout()timeout_remaining() - Bound how long a call can run
-
timeout_base()timeout_fn() - Write your own timeout method
-
async_timeout()async_timeout_base()async_timeout_fn()async_timeout_later() - Bound how long an asynchronous call can take
-
rate_limit() - Limit how often a function can be called
-
async_rate_limit() - Limit how often an asynchronous function can be called
-
fallback() - Return a default when a function fails
-
async_fallback() - Return a default when an asynchronous function fails
-
log_call() - Log the calls to a function
-
async_log_call() - Log the calls to an asynchronous function
-
log_levels() - The level of each event
log_call()logs -
logger_base()logger_fn()logger_message() - Loggers
-
extending_log - Use a logging package with
log_call()
-
once() - Run a function only once
-
async_once() - Run an asynchronous function only once
-
validate_args()validate_return() - Validate arguments and return values
-
async_validate_return() - Validate the value an asynchronous function resolves to
-
contextmanager()teardown() - Write setup and teardown once
-
with_context() - Run code inside a context
-
as_decorator() - Use a context manager as a decorator