A Python library providing programmatic access to Cisco ACI via the official Cobra SDK.
Project description
DEVACI Module
DEVACI module for python 3.x
Requirements
Before of install devaci module, you must install the acicobra and acimodel package. They can be downloaded from the APIC controller https://APIC_IP/cobra/_downloads/
$ pip install acicobra*
$ pip install acimodel*
Installation
$ pip install devaci_module
Requirement
Quickstart
Import the devaci_module library to use the package
from devaci_module import DeployClass
....
Below an example.
import os
from pathlib import Path
from devaci_module import DeployClass
from dotenv import load_dotenv
ROOT = Path(__file__).parent
load_dotenv(ROOT / ".env", override=True)
SETTINGS = {
"username": os.getenv("USER"),
"password": os.getenv("PASS"),
"ip": os.getenv("IP"),
"testing": False,
"file_output": "output",
"working_folder": ROOT,
}
if __name__ == "__main__":
aci = DeployClass(**SETTINGS)
aci.xlsx = [
"configurations/config1.xlsx",
]
aci.template = [
"templates/create_tenants.j2",
]
aci.deploy()
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devaci_module-1.5.2.tar.gz.
File metadata
- Download URL: devaci_module-1.5.2.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b198979ad46d654e55d04fa1e0d7db4f1870213301ca3329f9e4baad660841a
|
|
| MD5 |
7f04570922ab789f6767a9cda8715b7c
|
|
| BLAKE2b-256 |
d6faf0ddcf09b4a703e9505af728d0ede31b7beba1771e7e8049e4bce4bc1b5a
|
File details
Details for the file devaci_module-1.5.2-py3-none-any.whl.
File metadata
- Download URL: devaci_module-1.5.2-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fba7857b237493d81a15bd9a271c56837d3ac41fe51a0b41cd1c2ac52614c1cf
|
|
| MD5 |
af38a748c4a8c2a71d1153c0f2a8c3e9
|
|
| BLAKE2b-256 |
e1300a1257c063e8c7c33ec54cd1065a99aa71f5d67812e02712a0f9a1f3066f
|