Skip to main content

Netmikro

Netmikro is a simple library that provides an easy way to manage Mikrotik routers, simplifying configuration and monitoring tasks.

Everything works through an instance of the RouterOS class that creates an SSH connection with the device, think of the instantiated object as your own router, this object has methods to interact with your router, or you can Run custom commands directly in your router's terminal with the cmd() method.

Netmikro is on the shoulders of the Netmiko project, responsible for creating a connection via SSH with the Mikrotik router.

📝 Note: I'm just a computer networking enthusiast and have experience with handling MIkrotik routers. All Netmikro features are being tested during development with a Mikrotik RB912UAG-5HPn router. The idea is to test it on other models as soon as possible.


Documentation: https://netmikro.henriquesebastiao.com

Source Code: https://github.com/henriquesebastiao/netmikro


How to install

Netmikro is available on PyPi, so just use your preferred package manager:

pip install netmikro

Basic usage

You just need to create an instance of RouterOS to use Netmikro features:

from netmikro import RouterOS


router = RouterOS(
    '192.168.3.3',
    'user',
    'password',
    22,
)

router.cmd('/system identity print')

License

This project is licensed under the terms of the MIT license.

Metadata

Release files for netmikro 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netmikro 0.1.0
File Size Uploaded
netmikro-0.1.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for netmikro 0.1.0
File Interpreter ABI Platform
netmikro-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / netmikro-0.1.0.tar.gz

Download URL netmikro-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4caff0f02adbf1daabc69d275be4119d9aa37b10b791fb81ae433c9558d35941
BLAKE2b-256 checksum
How to use checksums
9a30ad96dce0aab1958ac860f22f9532fa49499ce29bf4173091d12b2f832c46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.6 Linux/6.7.2-arch1-2

Release files / netmikro-0.1.0-py3-none-any.whl

Download URL netmikro-0.1.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc816eb8cb2593cd18c232c76bbea484eded962241702aea95979917b48495ee
BLAKE2b-256 checksum
How to use checksums
1e5feff3d155bbcc2a92b6194cd11f477056e15c78ed201946be065655fa85a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.6 Linux/6.7.2-arch1-2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page