Metadata-Version: 2.1
Name: unha
Version: 0.1.3
Summary: A library to simplify telnet connections to Cisco IOS devices
Home-page: https://github.com/orgito/unha
Author: Renato Orgito
Author-email: orgito@gmail.com
Maintainer: Renato Orgito
Maintainer-email: orgito@gmail.com
License: MIT
Project-URL: Bug Reports, https://github.com/orgito/unha/issues
Project-URL: Source, https://github.com/orgito/unha
Keywords: unha network telnet automation
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.4

Unha
========
.. image:: https://img.shields.io/pypi/v/unha.svg?style=flat-square
    :target: https://pypi.org/project/unha

.. image:: https://img.shields.io/pypi/pyversions/unha.svg?style=flat-square
    :target: https://pypi.org/project/unha

.. image:: https://img.shields.io/pypi/l/unha.svg?style=flat-square
    :target: https://pypi.org/project/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+.

.. code-block:: bash

    $ 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.

.. code-block:: python

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



