A circuit breaker implementation for asyncio. Current version 3.0.1, requires Python >=3.9. Releases are sporadic.
pip install purgatoryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage of Purgatory's CircuitBreaker context manager.
Change imports from `from purgatory.circuit_breaker import CircuitBreaker` to `from purgatory import CircuitBreaker`.
Wrap the `async with breaker:` block in a try/except and implement exponential backoff retries.
Be aware of the reset behavior; adjust threshold accordingly.
No dependency data recorded yet.