python▌
103 indexed skills · max 10 per page
temporal-python-testing
wshobson/agents · Backend
Pytest-based testing strategies for Temporal workflows with time-skipping, mocking, and replay validation. \n \n Covers unit testing (WorkflowEnvironment with time-skipping), integration testing (mocked activities), and replay testing for determinism validation \n Time-skipping enables month-long workflows to execute in seconds; ActivityEnvironment isolates activity logic for fast feedback \n Includes progressive disclosure resources for unit testing, integration testing, replay testing, and loc
python-resilience
wshobson/agents · Backend
Automatic retries, exponential backoff, timeouts, and fault-tolerant decorators for Python services. \n \n Covers transient vs. permanent failure classification, exponential backoff with jitter, bounded retries, and timeout patterns using the tenacity library \n Includes nine production patterns: basic retry, selective error handling, HTTP status code retries, combined exception and status retries, retry logging, timeout decorators, stacked decorators, dependency injection for testing, and fail-
python-resource-management
wshobson/agents · Backend
Deterministic resource management with context managers, cleanup patterns, and streaming state accumulation. \n \n Covers class-based and decorator-based context managers for sync and async resources, with unconditional cleanup guarantees even on exceptions \n Includes patterns for database connections, file handles, connection pools, and dynamic resource management via ExitStack \n Provides streaming response patterns with efficient state accumulation, metrics tracking, and time-to-first-byte m