moonraker-api
Async websocket API client for Moonraker
Decision gist · record as of 2026-08-14
Yes, if you need to interface with Moonraker from Python. The package is actively maintained, has low install friction, and provides a clean async API. The GPLv3 copyleft license requires any derivative work to remain open-source, so verify that constraint fits your use case. No known vulnerabilities as of 2026-08-14.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; aiohttp and async-timeout must be installed as runtime dependencies.
- Low install friction with a pure-Python wheel distribution.
- Actively maintained with last commit on 2026-08-12; requires Python 3.10 or later.
License · maintenance · safety
copyleft license (copyleft) — Licensed under GPLv3 (copyleft). Any derivative work or distribution must also be open-source under GPLv3; proprietary use is not permitted.
last release 2026-06-10 (65 days) · last repo commit 2026-08-12 · 22 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 115,497 downloads/mo, #12,249 on PyPI
Alternatives
Verify before relying
pip install moonraker-api
from moonraker_api import MoonrakerClient, MoonrakerListener
class MyListener(MoonrakerListener):
async def on_notification(self, method, data):
print(f"Notification: {method} -> {data}")
client = MoonrakerClient(MyListener(), HOST, PORT, API_KEY)
await client.connect()
response = await client.request("printer.info")
await client.disconnect()- Whether Moonraker server setup and network accessibility are prerequisites for testing this client.
- Performance characteristics under high-frequency subscription updates or large payloads.
- Backward compatibility guarantees across minor version updates.
What it is and what it does
moonraker-api is a fully asynchronous Python client for Moonraker, a control API commonly used in printer systems. It handles WebSocket connections and subscriptions to real-time state updates without requiring polling loops. The package uses aiohttp and async-timeout as its only runtime dependencies, making it lightweight and suitable for integration into async Python applications.
You instantiate a MoonrakerClient with a listener object implementing MoonrakerListener, then call connect() to establish the WebSocket link. Once connected, you can issue one-off requests or subscribe to push notifications through callback methods. The listener pattern lets your code react to state changes, exceptions, and incoming notifications asynchronously, making it natural to embed in event-driven systems.
Use it for
- Monitor real-time printer status and state updates from a system via WebSocket subscriptions.
- Build integrations or custom dashboards that react to printer state changes without polling.
- Send commands and query printer configuration through the Moonraker API from an async Python application.
- Handle authentication errors and connection state transitions in a listener-based event loop.
- Integrate printer telemetry into monitoring or logging systems that require non-blocking async I/O.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to interface with Moonraker from Python.
The package is actively maintained, has low install friction, and provides a clean async API. The GPLv3 copyleft license requires any derivative work to remain open-source, so verify that constraint fits your use case. No known vulnerabilities as of 2026-08-14.
Install
moonraker-api on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with last commit on 2026-08-12; requires Python 3.10 or later.
Requires Python 3.10 or later; aiohttp and async-timeout must be installed as runtime dependencies.
License in practice
Licensed under GPLv3 (copyleft). Any derivative work or distribution must also be open-source under GPLv3; proprietary use is not permitted.
Quickstart
pip install moonraker-api
from moonraker_api import MoonrakerClient, MoonrakerListener
class MyListener(MoonrakerListener):
async def on_notification(self, method, data):
print(f"Notification: {method} -> {data}")
client = MoonrakerClient(MyListener(), HOST, PORT, API_KEY)
await client.connect()
response = await client.request("printer.info")
await client.disconnect()
Verify before relying
- Whether Moonraker server setup and network accessibility are prerequisites for testing this client.
- Performance characteristics under high-frequency subscription updates or large payloads.
- Backward compatibility guarantees across minor version updates.
Package facts
| License | copyleft license copyleft |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesaiohttpasync-timeout |
| Maintenance | Actively maintained 65 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 115,497 / month, #12,249 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: GNU General Public License v3 (GPLv3)Operating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: moonraker_api-4.0.0-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 › “moonraker websocket client”
- moonraker-apiFully async Python client for connecting to and subscribing to…
- lomondLomond is a WebSocket client library that converts WebSocket…
- websocket-clientwebsocket-client provides a Python WebSocket client implementing the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also aiohttp · plexwebsocket · python-kraken-sdk · aioapns · websockets · agentmail · aioambient · uptime-kuma-api-v2 · httpx-ws · winevt