mode-streaming
AsyncIO Service-based programming
Decision gist · record as of 2026-08-14
Yes. Mode is worth installing if you need to structure async programs around services with clear lifecycle management and dependency graphs. It has low install friction, active maintenance, permissive licensing, no known vulnerabilities, and broad Python version support. The fork's commitment to regular releases and modern Python support makes it a stable choice for new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction: pure Python wheel with only three runtime dependencies (colorlog, croniter, mypy_extensions).
- Actively maintained fork with recent releases and support for current Python versions (3.10–3.15, including free threading beta).
License · maintenance · safety
permissive license (permissive) — Permissive license (BSD) with no restrictions on commercial or proprietary use.
last release 2026-08-12 (2 days) · last repo commit 2026-08-12 · 49 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 427,422 downloads/mo, #6,750 on PyPI
Alternatives
Verify before relying
pip install mode-streaming
from mode import Service, Worker
class MyService(Service):
async def on_start(self) -> None:
print('Service starting')
if __name__ == '__main__':
Worker(MyService(), loglevel='info').execute_from_commandline()- Whether the fork has achieved feature parity with the original Mode project beyond the stated goals (releases, code quality, Python version support).
- Performance characteristics or overhead of the service graph and lifecycle management compared to raw asyncio.
What it is and what it does
Mode is a lightweight wrapper around asyncio that organizes async programs as services—classes with lifecycle hooks (on_start, on_started, on_stop) and optional background tasks. Services can depend on other services, forming a directed graph that Mode manages automatically. The library includes a Worker class that handles command-line startup, logging, signal handling, and graceful shutdown.
You define services by subclassing Service and implementing async methods for startup and shutdown logic. Services can start other services as dependencies, run background tasks with decorators like @Service.timer() or @Service.task, and optionally visualize their dependency graph. The fork was created to ensure regular releases, code quality, and support for modern Python versions (3.10–3.15, including free threading).
Use it for
- Building daemon applications with multiple async components that need coordinated startup and shutdown.
- Organizing long-running services (caches, workers, servers) with clear lifecycle management and dependency injection.
- Running background tasks on timers or as continuous loops within a larger async application.
- Visualizing and debugging the dependency graph of a complex async system using beacons and pydot.
- Integrating asyncio-based services into a command-line tool with logging, signal handling, and remote debugging.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Mode is worth installing if you need to structure async programs around services with clear lifecycle management and dependency graphs. It has low install friction, active maintenance, permissive licensing, no known vulnerabilities, and broad Python version support. The fork's commitment to regular releases and modern Python support makes it a stable choice for new projects.
Install
mode-streaming on PyPI
Before you install
Low friction: pure Python wheel with only three runtime dependencies (colorlog, croniter, mypy_extensions). Actively maintained fork with recent releases and support for current Python versions (3.10–3.15, including free threading beta).
Requires Python 3.10 or later.
License in practice
Permissive license (BSD) with no restrictions on commercial or proprietary use.
Quickstart
pip install mode-streaming
from mode import Service, Worker
class MyService(Service):
async def on_start(self) -> None:
print('Service starting')
if __name__ == '__main__':
Worker(MyService(), loglevel='info').execute_from_commandline()
Verify before relying
- Whether the fork has achieved feature parity with the original Mode project beyond the stated goals (releases, code quality, Python version support).
- Performance characteristics or overhead of the service graph and lifecycle management compared to raw asyncio.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagescolorlogcronitermypy_extensions |
| Maintenance | Actively maintained 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 427,422 / month, #6,750 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: No Input/Output (Daemon)Framework :: AsyncIOIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: Free Threading :: 2 - BetaProgramming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: mode_streaming-0.7.1-py2.py3-none-any.whl
Tags
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 service framework”
- mode-streamingMode is a minimal asyncio library that lets you build programs as…
- mautrixAn asyncio Matrix framework for Python that provides HTTP client…
- grpclibgrpclib is a pure-Python asyncio-based implementation of gRPC that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
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.
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.
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.
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.
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.
See also aioprocessing · gevent · eventlet · greenlet · tornado · asyncio-pool · threadloop · aiomultiprocess · mozrunner · aiologic