PyBreaker is available on PyPI and installs with a single command. It has no required dependencies — the core circuit breaker functionality works out of the box, with optional extras for Redis-backed distributed state and Tornado async support.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/danielfm/pybreaker/llms.txt
Use this file to discover all available pages before exploring further.
Requirements
- Python 3.9 or later
Install from PyPI
Install PyBreaker usingpip:
CircuitBreaker, CircuitBreakerListener, CircuitBreakerError, and the in-memory CircuitMemoryStorage.
Optional Dependencies
PyBreaker’s Redis and Tornado integrations are not installed by default. Install the relevant extra package alongside PyBreaker depending on the integration you need.- Redis Support
- Tornado Support
Install the
redis package to enable CircuitRedisStorage, which allows circuit state to be shared across multiple processes or hosts:Development Installation
To contribute to PyBreaker or run the test suite locally, clone the repository and install it in editable mode:-e) means changes you make to the source files are reflected immediately without reinstalling.
