NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #1547 most downloaded on PyPI
Python Circuit Breaker pattern implementation
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 10 months
Some releases are documented
notes for 3 of 11 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
11 releases · first in 2016
Nothing published for this version
Nothing published for this version
With version 2.0.0 circuitbreaker now supports async functions, as easy as: ` @circuit async def external_call(): ... ` A big _thank you_ to @paulorom
With version 2.0.0 circuitbreaker now supports async functions, as easy as:
@circuit
async def external_call():
...
A big thank you to @pauloromeira for your great contribution! 💪 🙌
⚠️ We finally stripped support for Python2 and some early Python3 versions.
Supported Python versions now are:
One column per quarter.
Using the wall clock to measure durations is vulnerable to changes in the system clock causing misbehavior - a clock accidentally set far in the futur…
The circuitbreaker project has been classified as "Critical Project" on PyPI, meaning it belongs to the top 1% of all projects on PyPI based on the downloads over the last 6 months. We're working an important peace here 🙂
https://pypi.org/project/circuitbreaker/
Therefore a big Thank You! to all contributors of this release!
🙌 @AugPro @matthewhughes934 @major @pabs3 @Freaky @ozooxo @xtaje 🙌
By default, the circuit breaker will raise a CircuitBreaker exception when the circuit is opened. You can instead specify a function to be called when the circuit is opened. This function can be specified with the fallback_function parameter and will be called with the same parameters as the decorated function would be.
The logic for handling thrown exceptions as failures can now be customized by passing a callable. The callable will be passed the exception type and value, and should return True if the exception should be treated as a failure.
Using the wall clock to measure durations is vulnerable to changes in the system clock causing misbehavior - a clock accidentally set far in the future and later reset could result in the circuit breaker remaining open for a great deal longer than expected. To solve this, a monotonic clock is now used for timing open states.
The circuitbreaker default names are now taken from __qualname__ if available for more precise default naming.
Nothing published for this version
Nothing published for this version
Nothing published for this version
New circuit breaker property last_failure allows accessing the last recorded exception (thanks @luiscoms )
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →