python-resilience

Implement retries, timeouts, and exponential backoff for Python external calls.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/ekremmkasap/jarvis --skill python-resilience-ekremmkasap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-resilience
Source: https://github.com/ekremmkasap/jarvis/tree/main/server/agent_prompts/wshobson/plugins/python-development/skills/python-resilience
Command: npx skills add https://github.com/ekremmkasap/jarvis --skill python-resilience-ekremmkasap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python applications frequently face transient failures from network calls and external services; this skill provides reusable resilience patterns to handle retries, timeouts, and fault tolerance.

Core Features & Use Cases

  • Automatic retries with exponential backoff and jitter
  • Timeout handling and circuit-breaker-like safeguards
  • Decorators and patterns for building fault-tolerant services
  • Guidance for common resilience scenarios in APIs, data pipelines, and microservices

Quick Start

Configure a Python project to use tenacity/httpx-based patterns and wrap external calls with resilience utilities to ensure stability.

Frequently Asked Questions about python-resilience

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

FAQPage Schema
How do I handle transient failures and network errors in Python microservices?

Handle transient failures in Python microservices by applying reusable resilience patterns like automatic retries, timeout management, and circuit-breaker-like safeguards to external service calls.

What is the best way to implement exponential backoff with jitter in Python?

Exponential backoff with jitter is implemented in Python through decorator-based and function-level abstractions, integrating tooling like tenacity to manage retry intervals and prevent thundering herd problems.

Can I use decorators to add retry logic and timeouts to my httpx API clients?

Yes, you can wrap httpx API client calls with decorator-based resilience patterns to automatically apply retry logic, exponential backoff, and timeout handling for robust external service communication.

Do I need external libraries like tenacity to build fault-tolerant Python data pipelines?

Building fault-tolerant Python data pipelines utilizes tooling integration with libraries like tenacity and httpx, providing structured patterns to ensure stability when processing external service requests.

When should I configure timeout handling and circuit-breaker safeguards in Python applications?

Configure timeout handling and circuit-breaker-like safeguards in Python applications when they rely on external services, APIs, or data pipelines prone to network instability and unpredictable transient failures.