From parseltongue
Async Python patterns using asyncio and aiohttp for I/O-bound concurrency. Covers async APIs, concurrent I/O, WebSockets, background tasks, and testing with pytest-asyncio.
How this skill is triggered — by the user, by Claude, or both
Slash command
/parseltongue:python-asyncThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
asyncio and async/await patterns for Python applications.
asyncio and async/await patterns for Python applications.
import asyncio
async def main():
print("Hello")
await asyncio.sleep(1)
print("World")
asyncio.run(main())
This skill uses progressive loading. Content is organized into focused modules:
modules/basic-patterns.md - Core async/await, gather(), and task managementmodules/concurrency-control.md - Semaphores and locks for rate limitingmodules/error-handling-timeouts.md - Error handling, timeouts, and cancellationmodules/advanced-patterns.md - Context managers, iterators, producer-consumermodules/testing-async.md - Testing with pytest-asynciomodules/real-world-applications.md - Web scraping and database operationsmodules/pitfalls-best-practices.md - Common mistakes and best practicesLoad specific modules based on your needs, or reference all for detailed guidance.
RuntimeError: no current event loop
Use asyncio.run() as the entry point. Avoid get_event_loop() in Python 3.10+.
Blocking call in async context
Move sync I/O to asyncio.to_thread() or loop.run_in_executor().
Tests hang indefinitely
Ensure pytest-asyncio is installed and test functions are decorated with @pytest.mark.asyncio.
npx claudepluginhub athola/claude-night-market --plugin parseltongueProvides Python asyncio, concurrent programming, and async/await patterns for high-performance applications. Use for async APIs, concurrent systems, or I/O-bound apps requiring non-blocking.
Guides implementation of async Python applications using asyncio, async/await, and concurrency patterns. Useful for building async web APIs, concurrent I/O operations, and real-time systems.