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_afterandmove_on_at. - a
Deferrerclass anddeferfunction to help with indentation and resource cleanup, like in Go. - a TaskGroup subclass with support for background tasks and concurrency limits.
- a safer
gatherimplementation, with concurrency limits.
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.