Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielfm/pybreaker
/ types & classes
Types & classes
29 in github.com/danielfm/pybreaker
⨍
Functions
206
◇
Types & classes
29
↳
Endpoints
3
↓ 38 callers
Class
CircuitBreaker
More abstractly, circuit breakers exists to allow one subsystem to fail without destroying the entire system. This is done by wrapping danger
src/pybreaker/__init__.py:81
↓ 7 callers
Class
CircuitMemoryStorage
Implement a `CircuitBreakerStorage` in local memory.
src/pybreaker/__init__.py:416
↓ 7 callers
Class
CircuitRedisStorage
Implement a `CircuitBreakerStorage` using redis.
src/pybreaker/__init__.py:474
↓ 5 callers
Class
CircuitBreakerListener
Listener class used to plug code to a ``CircuitBreaker`` instance when certain events happen.
src/pybreaker/__init__.py:647
↓ 4 callers
Class
TestException
tests/pybreaker_test.py:577
↓ 3 callers
Class
CircuitBreakerError
When calls to a service fails because the circuit is open, this error is raised to allow the caller to handle this type of exception differently.
src/pybreaker/__init__.py:900
↓ 2 callers
Class
Listener
tests/pybreaker_test.py:272
↓ 2 callers
Class
SleepListener
tests/pybreaker_test.py:1163
↓ 2 callers
Class
StateListener
tests/pybreaker_test.py:1130
↓ 2 callers
Class
SuccessListener
tests/pybreaker_test.py:1099
↓ 1 callers
Class
Foo
tests/pybreaker_test.py:365
Class
CircuitBreakerConfigurationTestCase
Tests for the CircuitBreaker class.
tests/pybreaker_test.py:384
Class
CircuitBreakerContextManagerTestCase
Tests for the CircuitBreaker class, when used as a context manager.
tests/pybreaker_test.py:1318
Class
CircuitBreakerRedisConcurrencyTestCase
Tests to reproduce common concurrency between different machines connecting to redis. This is simulated locally using threads.
tests/pybreaker_test.py:1172
Class
CircuitBreakerRedisTestCase
Tests for the CircuitBreaker class.
tests/pybreaker_test.py:957
Class
CircuitBreakerState
Implement the behavior needed by all circuit breaker states.
src/pybreaker/__init__.py:668
Class
CircuitBreakerStorage
Define the underlying storage for a circuit breaker - the underlying implementation should be in a subclass that overrides the method this cla
src/pybreaker/__init__.py:360
Class
CircuitBreakerStorageBasedTestCase
Mix in to test against different storage backings. Depends on `self.breaker` and `self.breaker_kwargs`.
tests/pybreaker_test.py:12
Class
CircuitBreakerTestCase
Tests for the CircuitBreaker class.
tests/pybreaker_test.py:901
Class
CircuitBreakerThreadsTestCase
Tests to reproduce common synchronization errors on CircuitBreaker class.
tests/pybreaker_test.py:1041
Class
CircuitClosedState
In the normal "closed" state, the circuit breaker executes operations as usual. If the call succeeds, nothing happens. If it fails, however, the
src/pybreaker/__init__.py:780
Class
CircuitHalfOpenState
In the "half-open" state, the next call to the circuit breaker is allowed to execute the dangerous operation. Should the call succeed, the circuit
src/pybreaker/__init__.py:861
Class
CircuitOpenState
When the circuit is "open", calls to the circuit breaker fail immediately, without any attempt to execute the real operation. This is indicated by
src/pybreaker/__init__.py:818
Class
SleepListener
tests/pybreaker_test.py:1308
Class
SpecificException
tests/pybreaker_test.py:1063
Class
SpecificException
tests/pybreaker_test.py:1205
Class
StateListener
tests/pybreaker_test.py:1271
Class
SuccessListener
tests/pybreaker_test.py:1240
Class
TestError
tests/pybreaker_test.py:1324