$npx skillfedfor your agent

aiorun

Boilerplate for asyncio applications

With conditionsPyPI Application FrameworksReleased Jan 2025313.0K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — aiorun-2025.1.1-py3-none-any.whl
v2025.1.1 · released 2025-01-27 · Python >=3.7

Yes, if you are building asyncio-based servers or long-lived applications. The package eliminates common shutdown-sequence bugs and is actively maintained with zero known vulnerabilities. Install friction is minimal (no dependencies, pure Python). The only caveat: read the documentation carefully—aiorun.run() behaves differently from asyncio.run() (runs forever by default), which can surprise developers expecting standard library semantics.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.7 or later.
  • Note that aiorun.run() runs forever by default—call loop.stop() inside your coroutine to exit, or pass stop_on_unhandled_errors=True to crash on exceptions.
  • Low friction—pure Python, no runtime dependencies, and actively maintained with recent releases.

License · maintenance · safety

permissive license (permissive) — Permissive license treatment means you can use this in commercial and proprietary projects without restrictive obligations.

last release 2025-01-27 (564 days) · last repo commit 2026-08-10 · 470 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 312,982 downloads/mo, #7,721 on PyPI

Verify before relying

import asyncio
from aiorun import run

async def main():
    await asyncio.sleep(1.0)

if __name__ == '__main__':
    run(main())
  • Whether the package's signal handling behavior (SIGINT, SIGTERM) is portable across Windows and Unix-like systems.
  • Performance characteristics when managing many concurrent tasks during shutdown.
Same gist for agents: .md · .json

What it is and what it does

aiorun is a lightweight wrapper around asyncio that eliminates boilerplate for long-lived async applications. Instead of manually creating event loops, scheduling tasks, setting up signal handlers, and orchestrating graceful shutdown, you pass a coroutine to aiorun.run() and it handles the rest—creating the loop, running forever, catching SIGINT and SIGTERM, cancelling pending tasks, and closing cleanly.

The package is designed for servers and daemon-like applications that should keep running until explicitly stopped. Unlike the standard library's asyncio.run(), which exits when the coroutine completes, aiorun.run() runs indefinitely unless you call loop.stop() or an unhandled exception occurs (if stop_on_unhandled_errors=True is set). It automatically gathers and cancels all pending tasks during shutdown, waits for executor jobs to finish, and closes the event loop.

Use it for

  • Building a TCP or HTTP server that needs clean signal handling and task cancellation on shutdown.
  • Running a long-lived async daemon or background worker that should survive transient errors.
  • Simplifying asyncio application startup when you want to avoid writing shutdown boilerplate.
  • Creating a resilient API service where one endpoint's exception shouldn't crash the entire process.
  • Prototyping async applications quickly without manually managing event loop lifecycle.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building asyncio-based servers or long-lived applications.

The package eliminates common shutdown-sequence bugs and is actively maintained with zero known vulnerabilities. Install friction is minimal (no dependencies, pure Python). The only caveat: read the documentation carefully—aiorun.run() behaves differently from asyncio.run() (runs forever by default), which can surprise developers expecting standard library semantics.

Install

aiorun on PyPI

Before you install

Low friction—pure Python, no runtime dependencies, and actively maintained with recent releases. Last commit was 2026-08-10 and the package supports current Python versions (3.8 through 3.12).

Requires Python 3.7 or later. Note that aiorun.run() runs forever by default—call loop.stop() inside your coroutine to exit, or pass stop_on_unhandled_errors=True to crash on exceptions.

License in practice

Permissive license treatment means you can use this in commercial and proprietary projects without restrictive obligations.

Quickstart

import asyncio
from aiorun import run

async def main():
    await asyncio.sleep(1.0)

if __name__ == '__main__':
    run(main())

Verify before relying

  • Whether the package's signal handling behavior (SIGINT, SIGTERM) is portable across Windows and Unix-like systems.
  • Performance characteristics when managing many concurrent tasks during shutdown.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 564 days since the last release
Last repo commit
First released
Downloads312,982 / month, #7,721 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: aiorun-2025.1.1-py3-none-any.whl

Tags

Capabilities
asyncio application boilerplateasyncio event loop runnergraceful shutdown asynciosignal handling async pythonasyncio task cancellationlong-running async serverasyncio startup shutdown
Topics
asyncioserver-boilerplate

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “asyncio application boilerplate”

  • aiorunProvides a simplified entry point for asyncio applications that…
  • threadedProvides decorators to wrap functions for execution in thread pools,…
  • unsyncDecorator-based library that runs async functions in an ambient event…

Give your agent the search over MCP, or paste the wish link into any chat.

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also aiojobs · aiotools · asyncio-atexit · asyncio-dgram · wait-for2 · aiomonitor · aioprocessing · aioserial · clarifai-protocol · aiodebug