aiobreaker
Python implementation of the Circuit Breaker pattern.
Decision gist · record as of 2026-08-14
Yes, if you need Circuit Breaker pattern support in an asyncio application and can accept that the package is unmaintained. The code is simple, has no dependencies, and the pattern itself is stable—but be aware that it will not receive updates for Python version changes or asyncio improvements. Consider it only for stable, long-lived codebases where you can maintain a fork if needed.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or higher; designed for asyncio-based applications only.
- Low install friction with no runtime dependencies.
- However, the package is abandoned—last release was 2021-05-17 and last commit 2022-01-01—so it will not receive bug fixes or security updates for new Python or asyncio changes.
License · maintenance · safety
BSD (permissive) — BSD permissive license means you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
last release 2021-05-17 (1915 days) · last repo commit 2022-01-01 · 29 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 408,955 downloads/mo, #6,873 on PyPI
Alternatives
Verify before relying
pip install aiobreaker
from aiobreaker import CircuitBreaker
from datetime import timedelta
db_breaker = CircuitBreaker(fail_max=5, reset_timeout=timedelta(seconds=60))
@db_breaker
async def outside_integration():
# Your async operation here
pass- Whether the package works reliably with Python versions released after 2022-01-01
- Current compatibility with modern asyncio implementations and async/await patterns
- Whether optional Redis backing feature is functional and documented
What it is and what it does
aiobreaker is an asyncio-native implementation of the Circuit Breaker pattern, a design pattern that prevents cascading failures by wrapping calls to external services or integration points. When a service fails repeatedly, the circuit breaker stops sending requests to it temporarily, allowing the service time to recover while your application handles the failure gracefully instead of repeatedly hitting a broken endpoint.
The package lets you decorate async functions with a circuit breaker that tracks failures, opens when a threshold is reached, and automatically resets after a timeout. It supports configurable failure thresholds, excluded exceptions (for business logic errors that shouldn't trigger the breaker), event listeners for monitoring, and optional Redis-backed state sharing across processes. However, the project is no longer maintained—the last commit was in early 2022—so it may not work correctly with recent Python or asyncio changes.
Use it for
- Protect database queries from overwhelming a struggling database by stopping requests when failures spike
- Guard API calls to third-party services so your app fails fast instead of timing out repeatedly
- Implement resilience in microservices by preventing one failing service from dragging down dependent services
- Monitor integration point health with event listeners to alert on repeated failures or circuit state changes
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need Circuit Breaker pattern support in an asyncio application and can accept that the package is unmaintained.
The code is simple, has no dependencies, and the pattern itself is stable—but be aware that it will not receive updates for Python version changes or asyncio improvements. Consider it only for stable, long-lived codebases where you can maintain a fork if needed.
Install
aiobreaker on PyPI
Before you install
Low install friction with no runtime dependencies. However, the package is abandoned—last release was 2021-05-17 and last commit 2022-01-01—so it will not receive bug fixes or security updates for new Python or asyncio changes.
Requires Python 3.6 or higher; designed for asyncio-based applications only.
License in practice
BSD permissive license means you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install aiobreaker
from aiobreaker import CircuitBreaker
from datetime import timedelta
db_breaker = CircuitBreaker(fail_max=5, reset_timeout=timedelta(seconds=60))
@db_breaker
async def outside_integration():
# Your async operation here
pass
Verify before relying
- Whether the package works reliably with Python versions released after 2022-01-01
- Current compatibility with modern asyncio implementations and async/await patterns
- Whether optional Redis backing feature is functional and documented
Package facts
| License | BSD permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,915 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 408,955 / month, #6,873 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.6Topic :: Software Development :: Libraries |
Evidence: aiobreaker-1.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “circuit breaker asyncio”
- aiobreakerImplements the Circuit Breaker pattern for asyncio applications,…
- purgatoryPurgatory implements the circuit breaker pattern for both synchronous…
- pybreakerPyBreaker wraps function calls with a circuit breaker that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also circuitbreaker · pybreaker · purgatory · waiter · async-stripe · threadloop · janus · torchft-nightly · retry2 · mistralai-workflows