What problem does it solve?
This Skill helps you make Python code resilient when external services fail, requests time out, or temporary network issues interrupt normal execution. It reduces manual retry logic and makes failure handling consistent across your codebase.
Core Features & Use Cases
- Automatic retries: Add controlled retry behavior for transient failures without retrying permanent bugs or invalid inputs.
- Exponential backoff and jitter: Space out repeated attempts to avoid overwhelming recovering services and reduce synchronized retry storms.
- Timeouts, decorators, and fallback behavior: Wrap network calls with reusable timeout and tracing patterns, then return safe defaults when non-critical operations fail.
- Use Case: A Python service calling an unreliable API can retry only retryable errors, stop after a bounded limit, log each attempt, and fall back gracefully if the dependency stays unavailable.
Quick Start
Use the python-resilience skill to add bounded retries, timeouts, and fail-safe behavior to a Python function that calls an unreliable external API.