Skip to main content

Implementation of the Circuit Breaker

Project description

Python Circuit Breaker Box

A Python implementation of the Circuit Breaker pattern with Redis and in-memory storage support.

Features

  • 🚀 Implementations:
    • Redis-based
    • In-memory
  • Python 3.10-3.13 support.
  • ⚡ Asynchronous API
  • 🔧 Configurable parameters
  • 🛠️ FastAPI integration through custom exceptions
  • 🔄 Exponential backoff by tenacity with jitter for retries

Installation

pip install circuit-breaker-box

Usage

See -> Examples

Development

Commands

Use -> Justfile

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

circuit_breaker_box-0.1.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

circuit_breaker_box-0.1.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file circuit_breaker_box-0.1.2.tar.gz.

File metadata

  • Download URL: circuit_breaker_box-0.1.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.31

File hashes

Hashes for circuit_breaker_box-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9c64c89f90c2274ea098633a54129ae311c03a4a35fd2183d2f148410afa924c
MD5 010811133b331150ea5d61780faec590
BLAKE2b-256 9cd22c5b0c3ca2c400f02b0db856b4df2631833e7c92d9104505bdc6a30ff7a6

See more details on using hashes here.

File details

Details for the file circuit_breaker_box-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for circuit_breaker_box-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 368b5f2de92ab9a4ec9204bff49d2dcbdc1b63ab00bd240219e0410c48128822
MD5 3160a7d4f7058f9dfa0c0a039925ce53
BLAKE2b-256 94b932bfc442735a360a8de33c1cfa5178d5f64205e8739c96905c221be4858f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page