Welcome to quattro!¶
Four-wheel drive for asyncio.
Release UNRELEASED (What’s new?)
quattro is a collection of small and powerful components for advanced task control in asyncio applications.
Using quattro gives you:
elegant context managers for deadlines and cancellation:
fail_after(),fail_at(),move_on_after()andmove_on_at().a
Deferrerclass anddefer()function to help with indentation and resource cleanup, like in Go.a TaskGroup subclass with support for background tasks.
a safer
gather()implementation.
quattro is influenced by structured concurrency concepts from the Trio framework.