Description
aiovty is an asynchronous implementation of the VTY protocol.
Installation
Install the last released version using pip:
python3 -m pip install --user -U aiovty
Or install the latest version from sources:
git clone git@github.com:matan1008/aiovty.git
cd aiovty
python3 -m pip install --user -U -e .
Usage
To create a client, you need to supply the server's prompt name (e.g. 'Router'):
from aiovty import AioVtyClient
vty = AioVtyClient('Router')
Then you can connect giving address:
connection_string = await vty.connect('127.0.0.1', 23)
Note that connecting returns the "connection string", which is the data sent before the first prompt.
After connection you can send your command:
command_response = await vty.command(b'show ip')
You can also enter enabled mode:
await vty.enable()
And initialize a configure terminal:
await vty.configure_terminal()
await vty.command(b'router rip')
print(vty.node) # Prints `config-router`
Metadata
Release files for aiovty 0.0.3
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 | |
|---|---|---|---|---|
| aiovty-0.0.3.tar.gz | 14.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiovty-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.6 kB
Release files / aiovty-0.0.3.tar.gz
| Download URL | aiovty-0.0.3.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e863c5090869dc499ef0a377abbf14ebf99dda96719b4d10803014d176eca91
|
|
BLAKE2b-256 checksum How to use checksums |
e304480787470776ace45233e3dff1da155f826b3d18bb64f987eef5b2670fb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / aiovty-0.0.3-py3-none-any.whl
| Download URL | aiovty-0.0.3-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
198f026de8999740b3c555eb50aa11f06c246368b5c963b783436400a820a78b
|
|
BLAKE2b-256 checksum How to use checksums |
04c72614da31e8664b5d93bf8271138b2f549038f0140a4e0c2d59502f8caf0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Security for aiovty 0.0.3
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.