backon: A Modern Zero-Dependency Python Retry Library With Circuit Breaker Support
A new Python library called backon has been released as a modern alternative to popular but now-unmaintained retry libraries such as backoff and tenacity. The zero-dependency library supports four retry APIs — decorator, functional, context manager, and callable — and works natively with both synchronous and asynchronous code. Notable features include a three-state circuit breaker, concurrent hedged retries, Prometheus and OpenTelemetry metrics integration, and a dedicated testing module. backon is designed as a near-drop-in replacement for the archived backoff library, requiring only a minor import change. The library requires Python 3.10 or higher and is available via pip on PyPI.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in