py_viptela
A Python SDK for Cisco SD-WAN vManage API(20.6.2)
This is a wrapper around Cisco's vManage API. All endpoints in the API are implemented. There's a similar solution provided by Cisco and can be accessed from DevNet website
Also from github
There's a separate repo for a postman collection to use with vManage API. That collection included all endpoints and can be found here
-
Why another solution?
It's a great way to learn new things by building things.
-
Is it completed or a work-in-progress project?
This started as a hobby project and still in progress.
-
How can I use this?
A How-To document will be available after phase-1, which is implementing all the API endpoints, is completed.
-
Contributions?
Highly appreciated and welcome.
All Endpoints in vManage API are implemented using the vmanage.json file available through vmanage/apidocs page as a reference
How to install using pip
pip install py-viptela
How to Use
- Clone this repo into your computer.
git clone https://github.com/aatikturk/py-viptela
- Change directory to "py-viptela"
cd py-viptela
- Import vmanage module and initiate an instance, and import any api module Required parameters are as follows: host: Ip address of the vManage port: port to access vmanage username: vManage username password: vManage password
>>>from py_viptela.vmanage import Vmanage
>>>from py_viptela import api
>>>
>>>vmanage = Vmanage(host='198.18.1.10', port=443, username='admin', password='testpassword')
>>>vmanage.login()
You're ready to make requests using api endpoints.
Example: Get all users from the vManage
>>>
>>>users = api.admin.user.findUsers(vmanage)
>>>
>>>users
[{'userName': 'admin', 'locale': 'en_US', 'group': []},
{'userName': 'dclouddemo',
'description': 'Administrator',
'locale': 'en_US',
'resGroupName': 'global',
'group': ['netadmin']}]
Metadata
Release files for py-viptela 0.2.9.8.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py_viptela-0.2.9.8.5.tar.gz | 84.0 kB | Without provenance | Details for py_viptela-0.2.9.8.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_viptela-0.2.9.8.5-py3-none-any.whl | Python 3 | none | any | Details for py_viptela-0.2.9.8.5-py3-none-any.whl |
Total release size: 276.8 kB
Release files / py_viptela-0.2.9.8.5.tar.gz
| Download URL | py_viptela-0.2.9.8.5.tar.gz |
|---|---|
| Size | 84.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9931a4653b0cf6b88588cfe14a4aa4dd2a811979aa83dcee58881a952f72aaa3
|
|
BLAKE2b-256 checksum How to use checksums |
09042a2e863b3014600ed5c322484a85e8a576cb7183025fb2c65f58ed97c77c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / py_viptela-0.2.9.8.5-py3-none-any.whl
| Download URL | py_viptela-0.2.9.8.5-py3-none-any.whl |
|---|---|
| Size | 192.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d689bf9ce4ad553c1e96fe912bbe87e4f653c50538a904a34c4482e75bcf9d0
|
|
BLAKE2b-256 checksum How to use checksums |
897a82d3a44e7193a9cceba09580cac02539b15e5cca2ece482883a3a0a4f4a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for py-viptela 0.2.9.8.5
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.