aiorosapi
Simple asyncio-based library to perform API queries on Mikrotik RouterOS-based devices.
Installation
Install from PyPi:
pip install aiorosapi
Install from sources:
git clone https://github.com/gaussgss/aiorosapi.git
cd aiorosapi
python setup.py install
Usage
import asyncio
from aiorosapi.protocol import create_ros_connection
async def main():
conn = await create_ros_connection(
host='192.168.90.1',
port=8728,
username='admin',
password=''
)
data = await conn.talk_one('/system/routerboard/print')
print("Routerboard info:")
for k, v in data.items():
print('{:>20s}: {}'.format(k, v))
data = await conn.talk_all('/interface/ethernet/print')
print("Ethernet interfaces:")
for item in data:
print("{:>20s}: {}".format(item['.id'], item['name']))
await conn.disconnect()
await conn.wait_disconnect()
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
loop.close()
Metadata
Release files for aiorosapi 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiorosapi-0.2.5.tar.gz | 6.0 kB | Without provenance | Details for aiorosapi-0.2.5.tar.gz |
Release files / aiorosapi-0.2.5.tar.gz
| Download URL | aiorosapi-0.2.5.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d948da872aadec3d441bdf3860aa6256970e1faab1b8a807c98857b23649a06b
|
|
BLAKE2b-256 checksum How to use checksums |
3fd131efee2b763b5fe0371975781aefe9df38c822010642da9b0bcb4ba3eb5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
|
Security for aiorosapi 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.