{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/3"}],"enrichment":{"capability":"Provides a simplified entry point for asyncio applications that handles event loop setup, signal handling, task cancellation, and graceful shutdown automatically.","skillfed_tags":["asyncio","server-boilerplate"],"use_cases":["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."],"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\u2014creating the loop, running forever, catching SIGINT and SIGTERM, cancelling pending tasks, and closing cleanly.\n\nThe 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.","worth_installing":"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\u2014aiorun.run() behaves differently from asyncio.run() (runs forever by default), which can surprise developers expecting standard library semantics."},"id":"aiorun","links":{"html":"https://skillfed.io/packages/aiorun","md":"https://skillfed.io/packages/aiorun.md","pypi":"https://pypi.org/project/aiorun/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-01-27","license_spdx":null,"license_treatment":"permissive","name":"aiorun","python_support":"supports_current","summary":"Boilerplate for asyncio applications"},"popularity":{"monthly_downloads":312982,"position":7721,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2025.1.1"}
