Skip to main content

async-python-patterns

Master Python asyncio, concurrent programming, and async/await patterns for high-performance applications. Use when building async APIs, concurrent systems, or I/O-bound applications requiring non-blocking operations.

跳到安装

来源信息

仓库
JantonioFC/skillsbank
最近来源活动
2026年8月4日 03:07
检测到的 SKILL.md 语言
英语
星标
6
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
async-python-patterns
description
Master Python asyncio, concurrent programming, and async/await patterns for high-performance applications. Use when building async APIs, concurrent systems, or I/O-bound applications requiring non-blocking operations.
risk
safe
source
community
license
MIT
# Async Python Patterns Comprehensive guidance for implementing asynchronous Python applications using asyncio, concurrent programming patterns, and async/await for building high-performance, non-blocking systems. ## Use this skill when - Building async web APIs (FastAPI, aiohttp, Sanic) - Implementing concurrent I/O operations (database, file, network) - Creating web scrapers with concurrent requests - Developing real-time applications (WebSocket servers, chat systems) - Processing multiple independent tasks simultaneously - Building microservices with async communication - Optimizing I/O-bound workloads - Implementing async background tasks and queues ## Do not use this skill when - The workload is CPU-bound with minimal I/O. - A simple synchronous script is sufficient. - The runtime environment cannot support asyncio/event loop usage. ## Instructions - Clarify workload characteristics (I/O vs CPU), targets, and runtime constraints. - Pick concurrency patterns (tasks, gather, queues, pools) with cancellation rules. - Add timeouts, backpressure, and structured error handling. - Include testing and debugging guidance for async code paths. - If detailed examples are required, open `resources/implementation-playbook.md`. Refer to `resources/implementation-playbook.md` for detailed patterns and examples. ## Resources - `resources/implementation-playbook.md` for detailed patterns and examples. ## When to Use Master Python asyncio, concurrent programming, and async/await patterns for high-performance applications. Use when building async APIs, concurrent systems, or I/O-bound applications requiring non-blocking operations.
在 GitHub 查看