aionet-0.0.43
توضیحات
async networking SDK
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aionet-0.0.43 |
| نام | aionet |
| نسخه کتابخانه | 0.0.43 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ali aqrabawi |
| ایمیل نویسنده | aaqrabaw@gmail.com |
| آدرس صفحه اصلی | https://github.com/Ali-aqrabawi/aionet |
| آدرس اینترنتی | https://pypi.org/project/aionet/ |
| مجوز | - |
aionet
******
Asynchronous multi-vendor library for interacting with network devices
this is a fork from netdev, with code refactor and new features added.
Requires:
---------
* asyncio
* AsyncSSH
* Python >=3.5
* pyYAML
* asyncssh
Supports:
---------
* Cisco IOS
* Cisco IOS XE
* Cisco IOS XR
* Cisco ASA
* Cisco NX-OS
* HP Comware
* Fujitsu Blade Switches
* Mikrotik RouterOS
* Arista EOS
* Juniper JunOS
* Aruba AOS 6.X
* Aruba AOS 8.X
* Terminal
Features:
---------
* SSH
* Telnet
* TextFSM
Examples:
---------
Example of interacting with Cisco IOS devices:
.. code-block:: python
import asyncio
import aionet
async def task(device):
async with aionet.ConnectionHandler(**device) as conn:
out = await conn.send_command("show ver")
print(out)
commands = ["interface vlan2", "no shut"]
out = await conn.send_config_set(commands)
async def run():
dev1 = { 'username' : 'user',
'password' : 'pass',
'device_type': 'cisco_ios',
'ip': 'ip address',
}
dev2 = { 'username' : 'user',
'password' : 'pass',
'device_type': 'cisco_ios',
'ip': 'ip address',
}
devices = [dev1, dev2]
tasks = [task(dev) for dev in devices]
await asyncio.wait(tasks)
loop = asyncio.get_event_loop()
loop.run_until_complete(run())
نیازمندی
| مقدار | نام |
|---|---|
| ==0.4.1 | textfsm |
| - | asyncssh |
نحوه نصب
نصب پکیج whl aionet-0.0.43:
pip install aionet-0.0.43.whl
نصب پکیج tar.gz aionet-0.0.43:
pip install aionet-0.0.43.tar.gz