uniq is a Python API client library for Cisco’s Application Policy Infrastructure Controller Enterprise Module (APIC-EM) Northbound APIs.
Description
The APIC-EM Northbound Interface is the only API that you will need to control your network programmatically. The API is function rich and provides you with an easy-to-use, programmatic control of your network elements, interfaces, and hosts.
The APIC-EM API provides you with the ability to think about your network at a higher policy level rather than how to implement that policy. When you use the APIC-EM API, your applications will make network policy decisions, which will then be implemented by the APIC-EM Controller through its Southbound Interfaces. Thus you tell the network what you want (i.e., the policy) and the controller figures out how to implement that policy for you.
The APIC-EM API is REST based and thus you will discover and control your network using HTTP protocol with HTTP verbs (i.e., GET, POST, PUT, and DELETE) with JSON syntax.
This package provides a handle to this rich API library in an easy to consume fashion.
Getting Started
Install
To install uniq, simply
pip install uniq
Use
Import the package and make an API call.
from uniq.apis.nb.client_manager import NbClientManager
client = NbClientManager(
server="1.1.1.1",
username="username",
password="password",
connect=True)
# NorthBound API call to get all users
user_list_result = client.user.getUsers()
# Serialize the model object to a python dictionary
users = client.serialize(user_list_result)
print(users)
Sample Scripts
For sample scripts check out the sample_scripts directory.
Python
This project has been tested and working on Python 3.0+
Metadata
Release files for uniq 1.4.0.36
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uniq-1.4.0.36-py3-none-any.whl | Python 3 | none | any | Details for uniq-1.4.0.36-py3-none-any.whl |
Release files / uniq-1.4.0.36-py3-none-any.whl
| Download URL | uniq-1.4.0.36-py3-none-any.whl |
|---|---|
| Size | 656.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79cc663e260fcd7b2318bbf25a7e533204b814f3c12fb31d1f0b4f50ad75f999
|
|
BLAKE2b-256 checksum How to use checksums |
f7a8b6de1c07930bc5e3e868a5d6423f9a4535d9127329a991269dd19b30de2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for uniq 1.4.0.36
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.