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

  • System
  • Interface
  • 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 an object of AosApiClient

    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}")

📚 Documentation

Please check out the details documentation at https://samuelyip74.github.io/Aos8ApiBuilder/intro/#


📦 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.post2.tar.gz (2.3 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.post2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aos8_api-8.9.3.post2.tar.gz
  • Upload date:
  • Size: 2.3 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.post2.tar.gz
Algorithm Hash digest
SHA256 fa5efdd09c061fe62ce2abc11d238c153f92b5d52f5a6d3c537df25bef3a71a4
MD5 d47e2cb65ab5a1eb9cd82b47cee2b3be
BLAKE2b-256 bc9e62bbbfab060fc22eea9060bc11d4fc74249557004cf68d282bb6bdc3c692

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aos8_api-8.9.3.post2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 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.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 209c515c121a8592ee34c1235c113290d290e1c8da23e113c7cfcec99dd8a5a7
MD5 919d5a20f8104cf515a43b4e788b735f
BLAKE2b-256 5282658b00ebfa167e30a115dc2c21c1a9de6d51c114189e460291f2d1e63c2b

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