Skip to main content

RouterOS v7 REST API python module

Project description

RosRestPy

PyPi Package Version Supported Python versions LICENSE

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


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.10.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rosrestpy-0.1.10-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file rosrestpy-0.1.10.tar.gz.

File metadata

  • Download URL: rosrestpy-0.1.10.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.8.13 Linux/5.15.0-1017-azure

File hashes

Hashes for rosrestpy-0.1.10.tar.gz
Algorithm Hash digest
SHA256 57d108e1f3e64c508930933ff83de2dfeb5ba3e068adc982a3f2e7a2c9ac327f
MD5 67a322fef5429cce4c964a0c2927fda5
BLAKE2b-256 68127172c2e5e57b7e1c90dc8e7cb9b9e287807e83dda618e92dc678d2dc1bea

See more details on using hashes here.

File details

Details for the file rosrestpy-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: rosrestpy-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 39.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.8.13 Linux/5.15.0-1017-azure

File hashes

Hashes for rosrestpy-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 3fa022c5637fa24518edf5728259edfcc7ac679f0cac8fcdc15d60c235f85204
MD5 2e1dacf67aa1abca26633e52cba3c786
BLAKE2b-256 b18193f25563678b46801ce45c76536e429deb8dc09d00913862b97a35b3ee3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page