Skip to main content

Unicon Connection Library

Project description

Unicon is a framework for developing device control libraries for routers, switches and servers and the likes. It is developed purely in Python, and aims to reduce the amount of boiler-plate coding required to handle device connections in Expect-like progamming. Unicon is designed to integrate as the default device connection class in Cisco pyATS, and as well can be used stand-alone if required.

Unicon is initially developed internally in Cisco, and is now available to the general public starting late 2017 through Cisco DevNet.

As a framework, Unicon provides a set of classes and settings which can be further sub-classed to create platform specific implementations.

One of the main design goals of unicon is DRY (Do Not Repeat Yourself). Hence the base classes handle all the common stuff which are applicable to all the platforms. This makes it very easy for a developer to implement connection library (via plugins) for new platforms, as they only ends up writing the differential code.

Requirements

Unicon currently supports Python 3.4+ on Linux & Mac systems. Windows platforms are not yet supported.

Quick Start

$ pip install --upgrade 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 usag 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

Join us at our DevNet community for support:

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

Project details


Release history Release notifications | RSS feed

This version

3.0.2

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-3.0.2-cp34-cp34m-manylinux1_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.4m

unicon-3.0.2-cp34-cp34m-macosx_10_13_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.4m macOS 10.13+ x86-64

File details

Details for the file unicon-3.0.2-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for unicon-3.0.2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 97a4b0cf67a3bb549bed2e96308d473bc0de12f75f32c5ab3474262dd42f8d57
MD5 bfc54567e4431d241cd7533c30635880
BLAKE2b-256 fb965f3d088fc755591314c0171a34ed2e781349709a145fd538b9d305f33de0

See more details on using hashes here.

File details

Details for the file unicon-3.0.2-cp34-cp34m-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for unicon-3.0.2-cp34-cp34m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 d92a7b8696789f70a45c133c3313834a1af68c97974891ac11cd377adcd9bbc2
MD5 5a08e6bda62c07ed1caa0973abcf6bb3
BLAKE2b-256 ca7a1235e2e45a6429d4e6f7dd48d294b72cd92386598afc38d38a29cee50051

See more details on using hashes here.

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