python-async-ops
Installation
SKILL.md
Python Async Patterns
Asyncio patterns for concurrent Python programming.
When to Use Async vs Sync
| Use Async When | Use Sync When |
|---|---|
| I/O-bound operations (HTTP, DB, files) | CPU-bound computations |
| High concurrency (100s+ connections) | Simple scripts, one-off tasks |
| WebSocket/streaming connections | Small data processing |
| Microservices with network calls | Single sequential operations |
Decision tree:
- Is it CPU-bound? → Sync (or multiprocessing)
- Is it I/O-bound with high concurrency? → Async
- Is it simple I/O with few connections? → Sync is fine