Skip to content

About

A minimal closed/open/half-open circuit breaker — clock injected, no deps.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Circuit breaker

circuit.py

Check the test file next to the source for real usage.

This is a basic state machine for closed, open, and half-open states. I injected the clock so you can test timeouts without adding sleep calls. Zero external dependencies.

It relies strictly on the Python standard library. You do not need to install any third-party packages or manage external services. Just drop the file in your project and get back to shipping features.

About

A minimal closed/open/half-open circuit breaker — clock injected, no deps.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages