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
  • VPA
  • IP

🛠️ 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

Interface:
- interface.list
- interface.admin_enable
- interface.admin_disable
- interface.autoneg_enable
- interface.autoneg_disable
- interface.epp_enable
- interface.epp_disable
- interface.set_speed

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

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

IP:
- vpa.list
- vpa.create
- vpa.edit
- vpa.delete

---

## 📦 Releases

| Version          | Date       | Notes                       |
|------------------|------------|-----------------------------|
| v8.9.03          | 2025-05-28 | Initial release             |
| v8.9.03post1     | 2025-05-28 | Interface, IP API added     |


---

## 📄 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.post1.tar.gz (2.4 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.post1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aos8_api-8.9.3.post1.tar.gz
  • Upload date:
  • Size: 2.4 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.post1.tar.gz
Algorithm Hash digest
SHA256 0b0574157111ef215ce1d0c807862641693eff183e9c4fe0f6928fe00faddb83
MD5 d8c64ba0241b4bfddc702d85b8314e50
BLAKE2b-256 31a5cc3190fa7a8931952546b898582e68c83d799519f8a8d7ad5d05252938c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aos8_api-8.9.3.post1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 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.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f9fec0d7da919a5aeccd5ac7ec7ba646c4393c7431db742210f6ff5503fbe03
MD5 b24ad99103e9e772264bd04cacd81c32
BLAKE2b-256 5e919abf92b11a93c92916ddc54fd679bb4b7ed9672d62533206a42f9f032ce3

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