Skip to main content

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:

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())

Metadata

Release files for aionet 0.0.43

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aionet 0.0.43
File Size Uploaded Provenance Actions
aionet-0.0.43.tar.gz 18.6 kB Without provenance Details for aionet-0.0.43.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aionet 0.0.43
File Interpreter ABI Platform Actions
aionet-0.0.43-py3-none-any.whl Python 3 none any Details for aionet-0.0.43-py3-none-any.whl

Total release size: 57.1 kB

Release files / aionet-0.0.43.tar.gz

Download URL aionet-0.0.43.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
20dc0896581239c81fd58f7200850d771b8a48d58aeba02287b4bb850dccd919
BLAKE2b-256 checksum
How to use checksums
ec3817d548b82e4ea4442efda8defa41d5de4babeafb247d613a24c440eda294
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5

Release files / aionet-0.0.43-py3-none-any.whl

Download URL aionet-0.0.43-py3-none-any.whl
Size 38.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72b5b2364e8483240a53f00b5994ad6a89b9cbf0ed8cf5319a44ad6d1bfb61df
BLAKE2b-256 checksum
How to use checksums
684cdbbcd4e796a14dc0804357237ea6fbaf4f450655ea36e85e882bfac0df06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5

Security for aionet 0.0.43

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page