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
Deferrer
class 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.
quattro is written by Tin Tvrtković and distributed under the terms of the Apache-2.0 license.