Skip to main content

OmniSwitch RestFUL API for Python

Project description

OmniSwitch AOS 8.x RestFul API Builder for Python - Aos8ApiBuilder

Aos8ApiBuilder is a lightweight python library that enables developers to interact seamlessly with the OmniSwitch RESTful API running version 8.x releases.


✨ Supported APIs

  • VLAN API
  • VPA API

🛠️ Built With

  • python 3.8
    dependencies = [
        "httpx>=0.24.1",
        "requests>=2.31.0",
        "pydantic>=2.0",
        "pybreaker>=0.7.0",
        "backoff>=2.2.1"
    ]

🚀 Installation

  1. pip install aos8x-api

📦 Usage Guide

Step 1: Create a global instance of Authenticator object in auth_instance.py

    from ApiBuilder import AosApiClientBuilder

    client = (
        AosApiClientBuilder()
        .setBaseUrl("https://<switch-ip-address>")
        .setUsername("<username>")
        .setPassword("<password>")
        .build()
    )

Step 2: Start calling the respective API in your application

    result = client.vlan.create_vlan(vlan_id=999)
    if result.success:
        print("✅ Vlan operation successfully")
    else:
        print(f"❌ VLAN creation failed (diag={result.diag}): {result.error}")


## 📚 Available Methods

VLAN API:
- vlan.list
- vlan.create
- vlan.edit
- vlan.delete

VPA API:
- vpa.list
- vpa.create
- vpa.edit
- vpa.delete

---

## 📦 Releases

| Version          | Date       | Notes                       |
|------------------|------------|-----------------------------|
| v8.9 R03         | 2025-05-28 | Initial release             |


---

## 📄 License

Copyright (c) Samuel Yip Kah Yean <2025>

This software is licensed for personal, non-commercial use only.

You are NOT permitted to:

  • Use this software for any commercial purposes.
  • Modify, adapt, reverse-engineer, or create derivative works.
  • Distribute, sublicense, or share this software.

All rights are reserved by the author.

For commercial licensing or permission inquiries, please contact: kahyean.yip@gmail.com



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

aos8_api-8.9.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

aos8_api-8.9.3-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file aos8_api-8.9.3.tar.gz.

File metadata

  • Download URL: aos8_api-8.9.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for aos8_api-8.9.3.tar.gz
Algorithm Hash digest
SHA256 c0084dc4f7f8bd35096fb529df2ec371ebd25ef7350e86a137a4edc19a057de2
MD5 98e520d398943562e61e06b03eaf75b0
BLAKE2b-256 c16553b32888fea1ce4a22857e0643e8d687ba2b5f846aa68ca8243eca6db076

See more details on using hashes here.

File details

Details for the file aos8_api-8.9.3-py3-none-any.whl.

File metadata

  • Download URL: aos8_api-8.9.3-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for aos8_api-8.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 430dbd6f47622a6ffc65767e4a3abde5f24ee6a76c070b540dcdda597efa2ef6
MD5 3cc1823fc318dc2c6ea6c79d44d231df
BLAKE2b-256 feaa985749073f75f1d26a32305fa468f375a240790523c66c1bd7b0f1e280f7

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