python-resilience

Add retries, timeouts, and fault-tolerant decorators to Python services.

3|2|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/wesleyegberto/software-engineering-skills --skill python-resilience-wesleyegberto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-resilience
Source: https://github.com/wesleyegberto/software-engineering-skills/tree/main/plugins/python/skills/python-resilience
Command: npx skills add https://github.com/wesleyegberto/software-engineering-skills --skill python-resilience-wesleyegberto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python applications often suffer from flaky external calls. This skill provides durable resilience patterns including automatic retries, exponential backoff, timeouts, and fault-tolerant decorators to keep services responsive.

Core Features & Use Cases

  • Retry logic with exponential backoff and jitter to handle transient failures in API calls and I/O-bound tasks.
  • Timeout enforcement to prevent hanging operations and to propagate failures quickly.
  • Decorator-based resilience composition enabling easy reuse across services such as microservices, data pipelines, and background workers.

Quick Start

Run a basic resilience example by applying a retry decorator to a function that calls an external service.

Frequently Asked Questions about python-resilience

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

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

You can add retries with exponential backoff to Python API calls by applying fault-tolerant decorators to your functions. This skill implements retry logic with jitter to handle transient failures, keeping your services responsive during flaky network operations.

What is the best way to prevent hanging operations in Python microservices?

The best way to prevent hanging operations in Python microservices is to enforce timeouts on network operations. This skill provides timeout enforcement to propagate failures quickly and stop unresponsive external dependencies from blocking your application.

Why does my Python background worker fail when external dependencies become unreliable?

Python background workers fail on unreliable dependencies because they lack fault-tolerant patterns. This skill addresses flaky external calls by adding automatic retries, exponential backoff, and timeouts to ensure data pipelines and workers remain responsive during network instability.

Do I need external libraries to implement resilience patterns in Python?

You do not need external libraries to implement resilience patterns in Python with this skill. It operates with zero dependencies, providing built-in decorators for exponential backoff, jitter, and timeout enforcement directly in your application.

When should I use retry logic with jitter in Python applications?

You should use retry logic with jitter in Python applications when handling transient failures in API calls and I/O-bound tasks. Jitter prevents thundering herd problems during retries, while exponential backoff ensures external dependencies have time to recover.