Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devaci_module-1.5.0.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devaci_module-1.5.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file devaci_module-1.5.0.tar.gz.

File metadata

  • Download URL: devaci_module-1.5.0.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.2

File hashes

Hashes for devaci_module-1.5.0.tar.gz
Algorithm Hash digest
SHA256 d10e14da91f4507f18bcfc1ea9c4bacdad7ee02f9dbe3f3e686b3a2bfd813f39
MD5 c29eb56a32192485914e433a998b168b
BLAKE2b-256 f316f9c88d6bc617378bd21ef2b0fb3da1be9a88456731b3007ec2c2d319a363

See more details on using hashes here.

File details

Details for the file devaci_module-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: devaci_module-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.2

File hashes

Hashes for devaci_module-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83f60d29fb6e12c2c3086b7fd509dfcbfd434d6dba9c1e42d6da984b3c1918a8
MD5 61eb47224d81c100db7001a34d727a71
BLAKE2b-256 1f10c4f5c29f25a88fbc0082603e625279d806d864c606e17d4c5b075a26fcaa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page