Aiorun
lastmod 2026-11-10created 2020-12-102 edits
aiorun is a Python library that takes care of the repetitive code needed to run asyncio-based applications. A single run() function safely handles creating the event loop, handling the SIGINT and SIGTERM signals, cancelling and cleaning up remaining tasks on shutdown, and shutting down the executor. It focuses on more graceful shutdown handling than asyncio.run() and also has an option to use uvloop.
A "run" function for asyncio-based apps that does all the boilerplate.