python-idempotent-retry-patterns
CommunityReliable Python retries with backoff and idempotency.
AuthorPremModhaOfficial
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides robust patterns for implementing retry logic and idempotency safeguards in Python, ensuring reliable network and service calls without duplication or data loss.
Core Features & Use Cases
- Exception-based Retry Logic: Classifies exceptions into retriable and fatal categories for precise retry control.
- Async Backoff with tenacity: Implements exponential jittered backoff for asynchronous operations like HTTP requests.
- Idempotency Enforcement: Manages idempotency keys via headers or message keys to prevent duplicate processing during retries.
- Use Case: Automatically retry failed HTTP requests to a REST API while maintaining idempotent behavior, integrating with HTTPX and Kafka.
Quick Start
Use this Skill to implement retry policies for your async HTTP or Kafka producer code by defining exception predicates, utilizing the provided decorators, and managing idempotency tokens in your requests.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: python-idempotent-retry-patterns Download link: https://github.com/PremModhaOfficial/sdk-pipeline/archive/main.zip#python-idempotent-retry-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.