python-resilience

Implement retry, timeout, and fault-tolerance patterns for Python applications.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill python-resilience-leonardoteodoroo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-resilience
Source: https://github.com/leonardoteodoroo/amino-advanced/tree/main/.agent/skills/python-resilience
Command: npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill python-resilience-leonardoteodoroo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Transient failures, timeouts, and flaky services can disrupt Python apps. This skill provides patterns to implement retries, exponential backoff, jitter, and fault-tolerant decorators to build resilient systems.

Core Features & Use Cases

  • Retry patterns for transient failures on external calls
  • Exponential backoff with jitter to avoid thundering herd
  • Timeouts and circuit breakers to keep services responsive
  • Decorators and DI to separate business logic from infrastructure

Quick Start

Demonstrate a robust retry with exponential backoff and timeouts for a flaky API call.

Frequently Asked Questions about python-resilience

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

FAQPage Schema
How do I implement retry and backoff patterns for flaky API calls in Python?

You can implement retry and backoff for flaky Python API calls using decorators to apply exponential backoff with jitter and deterministic retries, separating infrastructure logic from business logic.

How do I add timeouts to external service calls in Python microservices?

Add timeouts to external Python service calls by applying bounded total duration constraints via decorators, ensuring your microservices and data pipelines remain responsive during transient delays.

How do I stop thundering herd problems when retrying failed requests?

Stop thundering herd problems during retries by applying exponential backoff combined with jitter, which randomizes delay intervals across distributed Python clients to prevent synchronized request surges.

Can I use decorators to separate retry logic from business logic in Python?

Yes, you can use decorators and dependency injection to separate retry and timeout infrastructure from business logic, keeping Python application code clean and maintaining clear separation of concerns.

When do I need circuit breakers and fault tolerance patterns in Python data pipelines?

You need circuit breakers and fault tolerance patterns in Python data pipelines when external services experience transient failures, ensuring infrastructure remains responsive by bounding total durations and isolating faults.

What is the best way to handle transient failures in Python API clients?

The best way to handle transient failures in Python API clients is implementing deterministic retries with exponential backoff and bounded timeouts, promoting fault tolerance across microservices and infrastructure decorators.