Skip to main content

A Python package to program the Cisco ACI through the APIC using the supported Cobra SDK

Project description

Netscaler 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:///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")

SETTINGS = {
    "username": os.getenv("USER"),
    "password": os.getenv("PASS"),
    "ip": os.getenv("IP"),
    "log": ROOT / "logging.json",
    "logging": True,
}


if __name__ == "__main__":
    aci = DeployClass(**SETTINGS)
    aci.template = ROOT / "test.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.0.tar.gz (12.1 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.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: devaci_module-1.0.tar.gz
  • Upload date:
  • Size: 12.1 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.0.tar.gz
Algorithm Hash digest
SHA256 a590c304e26f10f377c6e7cdbe4e8a87cd10abf221da750401e576803578c6ec
MD5 9d1522b60d71d6209596d7ee80623fd2
BLAKE2b-256 95b44145bea808fda15c2b737f648e0be309f04aa5025ae7050a5989ebba1a99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: devaci_module-1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e97a3644008a3193f85356515eb773cc5944c34a92b3c74f1bdc85faee00461
MD5 02cbe78c30bec518fcdaeb362bf620cd
BLAKE2b-256 f1eaaa0d89b6a7f0f0977bfe9c39c65b786990aed7b0470ffd3fae9334c306bb

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