A python module for RouterOS REST API
Project description
REST RouterOS
A python module for the RouterOS REST API
Report Bug
·
Request Feature
Table of Contents
About The Project
There are many modules I found for the Mikrotik RouterOS. I didn't find any for the REST API and I have my router configured to support short lived certs with Hashicorp vault. Current implementations only allow for it to manage one certificate service.
Built With
This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
Getting Started
Prerequisites
Python and HTTPX is required
- HTTPX
pip install httpx
Installation
Install the module using pip
- RestRouterOS
pip install Rest-RouterOS
Usage
import json
from RestRouterOS.api import RestRouterOS
router = RestRouterOS("hostname", "username", "password")
response = router.identity()
print(json.dumps(response, indent=4))
Roadmap
- Build Complete Roadmap
- Get Calls For DNS
- Get Calls For DHCP
- Build Documentation
Contributing
If you would like to help with development, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Top contributors:
License
Distributed under the MIT License. See LICENSE.txt for more information.
Contact
Silvertoken - https://github.com/silvertoken
Project Link: https://github.com/silvertoken/rest-routeros
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rest_routeros-0.1.1.tar.gz.
File metadata
- Download URL: rest_routeros-0.1.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c96803d4fa4f23e785b8de518142a020706d2005c7e0bdcdb804bec98b99b5d
|
|
| MD5 |
65de4f6bccbf09d75e6dea292cf89cf2
|
|
| BLAKE2b-256 |
dac6981fe90a91a2c1160e42d0e8e199f522115ce0c5525f5fcc49fa6e924b18
|
Provenance
The following attestation bundles were made for rest_routeros-0.1.1.tar.gz:
Publisher:
pypi.yml on silvertoken/rest-routeros
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rest_routeros-0.1.1.tar.gz -
Subject digest:
4c96803d4fa4f23e785b8de518142a020706d2005c7e0bdcdb804bec98b99b5d - Sigstore transparency entry: 169774092
- Sigstore integration time:
-
Permalink:
silvertoken/rest-routeros@fbee0af6eb38dbbe78bd494e3d9f1d0210cc331e -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/silvertoken
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@fbee0af6eb38dbbe78bd494e3d9f1d0210cc331e -
Trigger Event:
push
-
Statement type:
File details
Details for the file Rest_RouterOS-0.1.1-py3-none-any.whl.
File metadata
- Download URL: Rest_RouterOS-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5586dba0ddf7140c1a7a67e188e08893f89a0d758282428bb464ec9f67c2391
|
|
| MD5 |
8fdbe593cb4a6d90b9ac7c236a0a0b7a
|
|
| BLAKE2b-256 |
5114c4dce0772be14923bbd0bf101ecb320d1a3063106b0025c7895a44e868c9
|
Provenance
The following attestation bundles were made for Rest_RouterOS-0.1.1-py3-none-any.whl:
Publisher:
pypi.yml on silvertoken/rest-routeros
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rest_routeros-0.1.1-py3-none-any.whl -
Subject digest:
a5586dba0ddf7140c1a7a67e188e08893f89a0d758282428bb464ec9f67c2391 - Sigstore transparency entry: 169774093
- Sigstore integration time:
-
Permalink:
silvertoken/rest-routeros@fbee0af6eb38dbbe78bd494e3d9f1d0210cc331e -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/silvertoken
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@fbee0af6eb38dbbe78bd494e3d9f1d0210cc331e -
Trigger Event:
push
-
Statement type: