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:
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file unicon-3.0.2-cp34-cp34m-manylinux1_x86_64.whl
.
File metadata
- Download URL: unicon-3.0.2-cp34-cp34m-manylinux1_x86_64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.4m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97a4b0cf67a3bb549bed2e96308d473bc0de12f75f32c5ab3474262dd42f8d57 |
|
MD5 | bfc54567e4431d241cd7533c30635880 |
|
BLAKE2b-256 | fb965f3d088fc755591314c0171a34ed2e781349709a145fd538b9d305f33de0 |
File details
Details for the file unicon-3.0.2-cp34-cp34m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: unicon-3.0.2-cp34-cp34m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.4m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d92a7b8696789f70a45c133c3313834a1af68c97974891ac11cd377adcd9bbc2 |
|
MD5 | 5a08e6bda62c07ed1caa0973abcf6bb3 |
|
BLAKE2b-256 | ca7a1235e2e45a6429d4e6f7dd48d294b72cd92386598afc38d38a29cee50051 |