Skip to main content

Unicon Connection Library

Project description

Unicon is a package aiming to provide a unified connection experience to network devices through typical command-line management interface. By wrapping the underlying session (eg, telnet, ssh), Unicon provides:

  • direct and proxied connections through any common CLI interface (telnet, ssh, serial etc)

  • power of expect-like programming without having to deal with low-level logic

  • multi-vendor support through an agnostic API interface

  • seamless handling of CLI modes (eg, enable, configure, admin-configure mode)

  • rejected commands, command error detections

  • value-add statful services (specific to the platform)

and is extensible: platform supports and services are implemented via open-source plugins.

Unicon is the standard, go-to CLI connection implementation for Cisco pyATS framework.

This package was initially developed internally in Cisco, and is now release to the general public starting late 2017 through Cisco DevNet.

https://developer.cisco.com/pyats/

Requirements

  • Linux/macOS/WSL

  • Python 3.4+

Quick Start

bash$ pip install unicon

For more information on setting up your Python development environment, such as creating virtual environment and installing pip on your system, please refer to Virtual Environment and Packages in Python tutorials.

Examples

See example of a Unicon connection usage with Cisco IOS devices at:

https://github.com/CiscoDevNet/pyats-ios-sample

In addition, there is a sample plugin package you can follow to develop Unicon plugins for new platforms on top of Unicon:

https://github.com/CiscoDevNet/pyats-plugin-examples/tree/master/unicon_plugin_example

Support & Community

See https://developer.cisco.com/docs/pyats/#!license-support page for details.

Release history Release notifications | RSS feed

This version

22.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

unicon-22.1-cp310-cp310-manylinux1_x86_64.whl (11.8 MB view hashes)

Uploaded CPython 3.10

unicon-22.1-cp310-cp310-macosx_10_16_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.10 macOS 10.16+ x86-64

unicon-22.1-cp39-cp39-manylinux1_x86_64.whl (11.7 MB view hashes)

Uploaded CPython 3.9

unicon-22.1-cp39-cp39-macosx_10_16_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.9 macOS 10.16+ x86-64

unicon-22.1-cp39-cp39-macosx_10_10_x86_64.whl (2.7 MB view hashes)

Uploaded CPython 3.9 macOS 10.10+ x86-64

unicon-22.1-cp38-cp38-manylinux1_x86_64.whl (13.2 MB view hashes)

Uploaded CPython 3.8

unicon-22.1-cp38-cp38-macosx_10_16_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.8 macOS 10.16+ x86-64

unicon-22.1-cp38-cp38-macosx_10_10_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.8 macOS 10.10+ x86-64

unicon-22.1-cp37-cp37m-manylinux1_x86_64.whl (10.4 MB view hashes)

Uploaded CPython 3.7m

unicon-22.1-cp37-cp37m-macosx_10_16_x86_64.whl (2.5 MB view hashes)

Uploaded CPython 3.7m macOS 10.16+ x86-64

unicon-22.1-cp37-cp37m-macosx_10_10_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.7m macOS 10.10+ x86-64

unicon-22.1-cp36-cp36m-manylinux1_x86_64.whl (10.4 MB view hashes)

Uploaded CPython 3.6m

unicon-22.1-cp36-cp36m-macosx_10_16_x86_64.whl (2.5 MB view hashes)

Uploaded CPython 3.6m macOS 10.16+ x86-64

unicon-22.1-cp36-cp36m-macosx_10_10_x86_64.whl (2.5 MB view hashes)

Uploaded CPython 3.6m macOS 10.10+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page