This skill provides comprehensive guidance on Python asynchronous programming patterns for reviewing and writing async code. It covers async/await syntax, best practices, common patterns, anti-patterns, and framework-specific considerations.
Asynchronous programming in Python enables efficient I/O-bound operations by allowing the event loop to switch between tasks while waiting for I/O operations to complete. However, async code introduces complexity and has specific patterns and pitfalls that must be understood for correct implementation.
Guida completa ai pattern asincroni/await di Python, alle best practice e agli anti-pattern. Copre i fondamenti di asyncio, coroutine, gestori di contesto asincroni, gestione delle attività, librerie comuni (aiohttp, aiofiles, asyncpg), integrazione del framework (FastAPI, Django), considerazioni sulle prestazioni e corretta gestione delle eccezioni. Da utilizzare durante la revisione o la scrittura di codice Python asincrono. Fonte: clostaunau/holiday-card.