librouteros
Python implementation of MikroTik RouterOS API
Decision gist · record as of 2026-08-14
Yes, if you need to programmatically manage MikroTik RouterOS devices and accept the GPL-2.0-or-later copyleft license. The package is actively maintained, has no external dependencies, installs easily, and is in the top 15000 PyPI packages by download volume. Verify that your use case aligns with the copyleft terms before adoption.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10.0 or later.
- A MikroTik RouterOS device with API access enabled is needed to connect to.
- Low install friction with a pure-Python wheel.
License · maintenance · safety
GPL-2.0-or-later (copyleft) — Licensed under GPL-2.0-or-later (copyleft). Any derivative work or bundled distribution must be released under compatible terms; proprietary applications cannot incorporate this library without licensing implications.
last release 2026-06-10 (65 days) · last repo commit 2026-08-14 · 265 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 146,118 downloads/mo, #11,108 on PyPI
Alternatives
Verify before relying
pip install librouteros
from librouteros import RouterOS
router = RouterOS(host='router.local', username='admin', password='pass')
router.connect()
result = router.query('/interface/print')- Whether the library supports all RouterOS API endpoints or a specific subset of commands.
- Performance characteristics when managing large numbers of devices or high-frequency queries.
- Whether async/concurrent operations are supported or if connections are synchronous only.
What it is and what it does
librouteros provides a Python interface to MikroTik RouterOS devices via their API. It abstracts the low-level protocol details, allowing developers to query and configure network settings, interfaces, firewall rules, and other RouterOS features programmatically rather than through the web UI or SSH.
The package has been in development since 2016 and is actively maintained. It carries no runtime dependencies beyond Python itself, making it lightweight to install. The copyleft license means it's suitable for open-source and internal projects but requires careful consideration in proprietary contexts.
Use it for
- Automate bulk configuration changes across multiple MikroTik devices in a network.
- Build monitoring dashboards that query RouterOS statistics and interface status in real time.
- Integrate MikroTik device management into larger network orchestration or infrastructure-as-code workflows.
- Script routine maintenance tasks like backup, firewall rule updates, or user provisioning on RouterOS systems.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to programmatically manage MikroTik RouterOS devices and accept the GPL-2.0-or-later copyleft license.
The package is actively maintained, has no external dependencies, installs easily, and is in the top 15000 PyPI packages by download volume. Verify that your use case aligns with the copyleft terms before adoption.
Install
librouteros on PyPI
Before you install
Low install friction with a pure-Python wheel. The package is actively maintained with a recent release and steady commit history, supporting current Python versions.
Requires Python 3.10.0 or later. A MikroTik RouterOS device with API access enabled is needed to connect to.
License in practice
Licensed under GPL-2.0-or-later (copyleft). Any derivative work or bundled distribution must be released under compatible terms; proprietary applications cannot incorporate this library without licensing implications.
Quickstart
pip install librouteros
from librouteros import RouterOS
router = RouterOS(host='router.local', username='admin', password='pass')
router.connect()
result = router.query('/interface/print')
Verify before relying
- Whether the library supports all RouterOS API endpoints or a specific subset of commands.
- Performance characteristics when managing large numbers of devices or high-frequency queries.
- Whether async/concurrent operations are supported or if connections are synchronous only.
Package facts
| License | GPL-2.0-or-later copyleft |
| Python support | Supports the current Python release >=3.10.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 65 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 146,118 / month, #11,108 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: librouteros-4.1.1-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 › “mikrotik routeros api client”
- librouteroslibrouteros is a Python client library for the MikroTik RouterOS API,…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
uvloop is a drop-in replacement for Python's built-in asyncio event loop, implemented in Cython and using libuv, that accelerates async I/O operations.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
PyZMQ provides Python bindings for ZeroMQ (ØMQ), a lightweight messaging library that enables fast, asynchronous communication between distributed processes and applications.
See also nmcli · python-roborock · meross-iot · python-otbr-api · msmart-ng · python-fullykiosk · aiowebostv · device-detector · pylutron-caseta · aiolifx