Unha
A library to simplify telnet connections to Cisco IOS devices
Installation
Unha is distributed on PyPI and is available on Linux/macOS and Windows and supports Python 3.6+.
$ pip install -U unha
Why not just use Netmiko?
I use Netmiko whenever possible. Unfortunately I have some old cisco devices that just refuse to work with Netmiko. I spent a lot of time trying to make it work but eventually gave up.
Unha is a fallback library that I use when Netmiko with cisco_ios_telnet fails to connect to my stuborn devices.
Usually my scripts will try to connect to the devices using the fololwing methods:
Netmiko with device_type cisco_ios
Netmiko with device_type cisco_ios_telnet
Unha
Usage
I try to emulate the Netmiko methods.
>>> device = Unha('10.0.0.1', 'username', 'password')
>>> output = device.send_command('show version')
>>> device.send_config_set(['snmp ifmib ifindex persist', 'snmp-server enable traps cpu threshold'])
>>> device.disconnect()
Metadata
Release files for unha 0.1.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 | Actions |
|---|---|---|---|---|
| unha-0.1.3.tar.gz | 2.9 kB | Without provenance | Details for unha-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unha-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for unha-0.1.3-py3-none-any.whl |
Total release size: 6.9 kB
Release files / unha-0.1.3.tar.gz
| Download URL | unha-0.1.3.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9eaf7d4f05a01218ab68030ed22d1a63e414d3e9d62b0685e42a76540c13cbbb
|
|
BLAKE2b-256 checksum How to use checksums |
ba550ac489f065e06617f8925087ec26acadb5418aa6a6c6aaec466a93bffbdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Release files / unha-0.1.3-py3-none-any.whl
| Download URL | unha-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59284fc9956e2515327fda08f6d8883502600ca15062f1d540c5c8ce51c71492
|
|
BLAKE2b-256 checksum How to use checksums |
c3ee9b38b6cf2432a4948798e75779c389156c0116ae7599ba89d02733855dc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Security for unha 0.1.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.