RouterOS v7 REST API python module
Project description
RosRestPy
RouterOS v7 REST API python module
RouterOS v7 REST API Support
Not all types and methods of the RouterOS v7 REST API are supported, yet.
Installing
You can install or upgrade rosrestpy with:
pip install rosrestpy --upgrade
Example
from ros import Ros
ros = Ros("https://192.168.88.1/", "admin", "")
if ros.system.resource.cpu_load > 90:
print(f"{ros.system.identity}'s CPU > 90%")
for interface in ros.interface.print():
print(interface.name)
bw_tests = ros.tool.bandwith_test("172.16.0.1", "3s", "admin", direction="both")
result_bw_test = bw_tests[-1]
print(f"Download {result_bw_tests.rx_total_average}")
print(f"Upload {result_bw_tests.tx_total_average}")
Resources
The RouterOS REST API is the technical reference for rosrestpy
.
Contributing
Contributions of all sizes are welcome. Please review our contribution guidelines to get started. You can also help by reporting bugs or feature requests.
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
rosrestpy-0.1.7.tar.gz
(23.8 kB
view hashes)
Built Distribution
rosrestpy-0.1.7-py3-none-any.whl
(32.3 kB
view hashes)
Close
Hashes for rosrestpy-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75ff61d2ffef568eabccc0bcd8ce9e241752c37addc79609b0d68ce974aa2c0d |
|
MD5 | 52fbb958c785c07115c1e7fd310a2790 |
|
BLAKE2b-256 | 8b7eca635dfabcf19570f07f3b15bd5f95edd27745f90fefeaa3f4660144f0af |