Skip to main content

OmniVista Cirrus RestFul API library for Python

Project description

OmniVista Cirrus API Library for Python - OVCirrusApi

OVCirrusApi is a lightweight python library that enables developers to interact seamlessly with the OmniVista Cirrus RESTful API.


✨ Supported APIs

The full API documentation is available at: OmniVista Cirrus API Docs

  • Authentication API
  • User API
  • Organization API
  • Site API
  • Device 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 ovcirrus-api

📦 Usage Guide

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

    # auth_instance.py
    from aos8_api.api_client import Authenticator
    auth = (
        Authenticator()
        .setURL("https://api.example.com/auth")
        .setCredentials("your@email.com", "your_password")
        .setApp("your_app_id", "your_app_secret")
        .build()
    )

Step 2: Import the auth instance and apiClient library in your .py application

    from auth_instance import auth  # auth_instance.py
    from api_client import OVCirrusApiClient
    
    apiClient = OVCirrusApiClient(base_url=API_BASE_URL, auth=auth)
    userProfile = await apiClient.user.getUserProfile()
    if userProfile is None:
        print("Failed to retrieve profile.")
        return
    else:
        print(userProfile.firstname)

    await apiClient.close()

🧪 Give it a try - example_usage.py

  1. Fill in the API credentials in the .env file
API_BASE_URL = "https://<base_url>/"
AUTH_URL = API_BASE_URL + "api/ov/v1/applications/authenticate"

EMAIL = "<email>"
PASSWORD = "<password>"
APP_ID = "<appId>"
APP_SECRET = "<appSecret>"
  1. Run the script, python .\example_usage.py

📚 Available Methods

User API:

  • getUserProfile
  • UpdateUserProfile

Organization API:

  • createAnOrganization
  • getAllUserOrganizations
  • getOrganizationBasicSettings
  • getOrganization
  • updateOrganization
  • deleteOrganization

Site API

  • createSite
  • getOrganizationSites
  • getOrganizationSitesBuildingsFloors
  • getSite
  • updateSite
  • deleteSite

Device API

  • createDevice
  • getAllDevices
  • createRemoteAP
  • getAllDevicesFromOrganization
  • getDevice
  • getDeviceDetails
  • updateDevice
  • deleteDevice
  • updateRemoteAP
  • saveToRunning
  • reboot

SSID API

  • getAllSsids
  • createSSID

📦 Releases

Version Date Notes
v10.4.3 2025-04-16 Initial release
v10.4.3post2 2025-04-16 Authentication API
v10.4.3post3 2025-04-18 Profile API added
v10.4.3post4 2025-04-18 Organization API added
v10.4.3post5 2025-04-18 Sites API added
v10.4.3post6 2025-04-18 Device API added
v10.4.3post7 2025-04-18 SSID API added
v10.4.3post7 2025-04-18 Bugs fixes

Visit the Releases page to download .zip packages.


📄 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

ovcirrus_api-10.4.3.post10.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

ovcirrus_api-10.4.3.post10-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file ovcirrus_api-10.4.3.post10.tar.gz.

File metadata

  • Download URL: ovcirrus_api-10.4.3.post10.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for ovcirrus_api-10.4.3.post10.tar.gz
Algorithm Hash digest
SHA256 5a326a780f45197dcf8f26396a11ca501ecf3a43e4cf6ca6e2b140624d832269
MD5 4efb55c9c3dcb2449835bb411c2d1684
BLAKE2b-256 4162d58a0d3a4fe52e24aceb0e9002f35932b7fc28620a6d79de5b8c145836da

See more details on using hashes here.

File details

Details for the file ovcirrus_api-10.4.3.post10-py3-none-any.whl.

File metadata

File hashes

Hashes for ovcirrus_api-10.4.3.post10-py3-none-any.whl
Algorithm Hash digest
SHA256 6d8825ffac695cbbbdff21dd89c92fb59cce20fc13c6ffa3d41fdbd8104d884c
MD5 a1c2f88fd4db1e5fbe97e86830adefdf
BLAKE2b-256 ecdf859bb3591d8d53fb6149e4b82e3c377d8cd88d2966789d1d6fa7fe2c1baf

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