Skip to main content

Unha

https://img.shields.io/pypi/v/unha.svg?style=flat-square https://img.shields.io/pypi/pyversions/unha.svg?style=flat-square https://img.shields.io/pypi/l/unha.svg?style=flat-square

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)

Source distribution for unha 0.1.3
File Size Uploaded
unha-0.1.3.tar.gz 2.9 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

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