--- id: aiomonitor version: "0.7.1" license: Apache-2.0 license_treatment: permissive maintenance: active --- # aiomonitor — Adds monitor and Python REPL capabilities for asyncio applications License: permissive · Maintenance: active · Downloads: 297.1K/mo ## What it is and what it does aiomonitor is a development and debugging tool for asyncio applications that runs a monitor server in a background thread, allowing you to inspect and interact with a running event loop without blocking it. The monitor provides a telnet interface (port 20101) and a Python REPL where you can execute async commands, list and cancel tasks, view stack traces, and explore application state—useful when the event loop itself is blocked or unresponsive. The package depends on aioconsole, click, prompt-toolkit, and several other async/terminal libraries to provide its interactive console and command interface. It is designed as a drop-in addition to existing asyncio or aiohttp applications, with a simple context-manager API. The tool is inspired by curio's monitor and is primarily intended for development and debugging rather than production monitoring. Use it for: - Debug a stuck or slow asyncio application by connecting to the monitor and inspecting task state without restarting. - Explore live application variables and execute async test queries inside a running event loop via the Python console. - Cancel hung or runaway tasks from a remote terminal without stopping the entire application. - Inspect task creation and termination chains to understand concurrency flow during development. - Add custom monitoring commands to your asyncio app by extending aiomonitor with your own console commands. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Adds a concurrent monitor and interactive Python REPL to asyncio applications, accessible via telnet or a built-in CLI client, allowing inspection and control of running tasks without blocking the event loop. Yes, if you develop or debug asyncio applications. Low install friction, active maintenance, no known vulnerabilities, and Apache-2.0 licensing make it a safe choice. The tool is mature enough for development workflows but is explicitly designed for that use case, not production monitoring—clarify your intent before relying on it for live systems. ## Install pip install aiomonitor uv add aiomonitor poetry add aiomonitor ## Installing aiomonitor Before you install: Low friction: pure Python wheel with 12 runtime dependencies, all common async/CLI libraries. Active maintenance as of July 2026, with recent Python 3.13 support added in November 2024. License in practice: Apache-2.0 permissive license; safe for commercial and proprietary use with minimal obligations beyond attribution. Quickstart: import asyncio import aiomonitor async def main(): loop = asyncio.get_running_loop() with aiomonitor.start_monitor(loop): await asyncio.sleep(10) asyncio.run(main()) # Then: telnet localhost 20101 Requires Python 3.9+ (3.8 dropped in 0.7.1); monitor runs in a separate thread and listens on port 20101 by default. Verify before relying: - Whether the monitor thread overhead is acceptable for production workloads or primarily intended for development. - Performance impact when many tasks are running or event loop is under heavy load. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 297.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags asyncio task monitoring, asyncio debugging console, async event loop inspector, telnet monitor for asyncio, asyncio REPL debugger, async task introspection, asyncio development tools, asyncio-debugging, devtool, repl [View on SkillFed](https://skillfed.io/packages/aiomonitor) · [View on PyPI](https://pypi.org/project/aiomonitor/)