{"repo":"AhsanSheraz/pyresilience","free":true,"listed":false,"github":"https://github.com/AhsanSheraz/pyresilience","clone":"git clone https://github.com/AhsanSheraz/pyresilience.git","description":"Unified resilience patterns for Python — retry, circuit breaker, timeout, fallback, bulkhead, rate limiter, and cache in one decorator. Python's Resilience4j.","language":"Python","stars":68,"topics":["async","asyncio","bulkhead","cache","circuit-breaker","decorator","distributed-systems","fallback","fault-tolerance","microservices"],"license":"MIT","category":"analytics","readme_excerpt":"pyresilience All resilience patterns. One decorator. Zero dependencies. Inspired by Java's Resilience4j. Stop juggling tenacity for retries, pybreaker for circuit breakers, and custom code for everything else. pyresilience gives you retry, circuit breaker, timeout, fallback, bulkhead, rate limiter, and cache — all through a single @resilient() decorator that works with both sync and async functions. --- Install Also works with uv , poetry , and pdm . Quick Start Retries with exponential backoff. Times out at 10s. Opens the circuit after 5 failures. That's it. Why pyresilience? - One library instead of many — No need to wire together tenacity + pybreaker + custom timeout/fallback/rate limiting code. One config, one decorator. - Patterns that work together — Circuit breaker state is shared across retries. Rate limiting respects bulkhead limits. Cache short-circuits the entire pipeline. Everything is coordinated. - Zero dependencies — Pure Python stdlib. Nothing to conflict with your stack. - Sync and async — Same API for both. Auto-detects your function type. - Production observability — Built-in event listeners for logging, metrics, and alerting. OpenTelemetry and Prometheus listeners included. Know when circuits open, retries fire, or rate limits hit. - Thread-safe and async-safe — All stateful components use locks. Async-safe latency tracking via contextvars . Cache stampede prevention via per-key locking. - Framework integrations — Drop-in support for FastAPI, Django, and F","default_branch":null,"files":null,"tree":[],"storefront":"/r/AhsanSheraz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AhsanSheraz/pyresilience/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}