Dev.to
7/13/2026

Building the Polly that Python never had
Short summary
A new Python library called nopanic provides composable resilience patterns — retry, timeout, circuit breaker, fallback, and backoff — for apps calling external APIs. Policies compose via a decorator-based API with no wrapper exceptions, injectable clocks for testing, and event-stream observability. The library also applies TCP's AIMD congestion control to API quotas, and the author reports measured overhead of 0.15-1.3 microseconds per policy call.
- •nopanic offers composable retry, timeout, circuit breaker, fallback, and backoff for Python
- •Decorator-based API with no wrapper exceptions, injectable clocks, and event-stream observability
- •Applies TCP AIMD congestion control to API quotas; overhead of 0.15-1.3µs per policy
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



