Async Python Patterns

•
7
•

Guides the selection and implementation of Python asyncio primitives using a structured decision framework for high-concurrency applications.

This skill provides a comprehensive decision framework for Python developers working with asynchronous programming. It helps Claude choose between asyncio.gather, TaskGroup, and other concurrency primitives based on structured concurrency principles, Python version compatibility (3.11+), and specific error-handling requirements. By focusing on the logic behind the patterns rather than just raw code, it ensures robust cancellation safety, prevents event-loop blocking, and facilitates correct bridging between synchronous and asynchronous codebases in complex engineering projects.

主な機能

01Call-graph and safety contract output formatting
02Sync-to-async and async-to-sync bridging logic
03Event-loop blocking audit and remediation guidance
047 GitHub stars
05Primitive selection framework for TaskGroup, gather, and wait_for
06Structured concurrency and cancellation safety protocols

ユースケース

01Debugging resource leaks or 'Task was destroyed but it is pending' errors
02Designing high-concurrency network services with FastAPI or aiohttp
03Refactoring legacy synchronous codebases to use asynchronous I/O