python-resilience

Implement retries with exponential backoff, timeouts, and circuit-breaking for Python applications.

3|1|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/duanbiao2000/obsidianDoc26 --skill python-resilience-duanbiao2000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-resilience
Source: https://github.com/duanbiao2000/obsidianDoc26/tree/main/agents-main/plugins/python-development/skills/python-resilience
Command: npx skills add https://github.com/duanbiao2000/obsidianDoc26 --skill python-resilience-duanbiao2000

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide reliable Python applications by implementing resilience patterns.

Core Features & Use Cases

  • Automatic retries with exponential backoff and jitter to recover from transient failures.
  • Timeouts for network operations to prevent hanging calls.
  • Fault-tolerant decorators and pattern composition for cross-cutting concerns.
  • Use Case: Build fault-tolerant services that remain responsive during dependency outages.

Quick Start

Implement a retry on external calls using tenacity with exponential backoff to recover from transient errors.

Frequently Asked Questions about python-resilience

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add automatic retries with exponential backoff to Python API calls?

To add automatic retries with exponential backoff to Python API calls, you can apply fault-tolerant decorators that automatically re-execute failed network operations with bounded retry limits and jitter to withstand transient failures.

How do I enforce timeouts on networked services in Python to prevent hanging calls?

To enforce timeouts on networked services in Python, you apply resilience patterns that restrict the maximum duration of network operations, preventing indefinite hanging calls and keeping your application responsive during dependency outages.

What does a circuit breaker do for Python application fault tolerance?

A circuit breaker for Python application fault tolerance stops sending requests to a failing service temporarily, allowing it to recover and preventing cascading failures across your networked modules during extended outages.

Can I use decorators to compose resilience patterns like retries and timeouts in Python?

Yes, you can use decorators to compose resilience patterns like retries and timeouts in Python. Decorator-based composition allows you to apply cross-cutting reliability concerns cleanly across multiple networked modules.

When do I need circuit-breaking and retry limits for transient failures in Python?

You need circuit-breaking and bounded retry limits for transient failures in Python when building fault-tolerant services that must remain responsive and avoid cascading failures during external API dependency outages.