Skip to main content

An async API client for HYXi Cloud.

Project description

hyxi-cloud-api

Security Shield PyPI version CI/CD Pipeline Python Versions OpenSSF Baseline

An asynchronous Python client for interacting with the HYXi Cloud API.

This library was primarily built to power the HYXi Cloud Home Assistant Integration, but it can be used in any Python 3.11+ project to fetch telemetry data from HYXi solar inverters and battery systems.

📦 Installation

You can install the package directly from PyPI:

pip install hyxi-cloud-api

🚀 Quick Start

This library uses aiohttp for non-blocking network requests. You will need to provide your HYXi Cloud Access Key and Secret Key, along with an active aiohttp.ClientSession.

import asyncio
import aiohttp
from hyxi_cloud_api import HyxiApiClient

async def main():
    # Replace with your actual HYXi Cloud credentials
    ACCESS_KEY = "your_access_key"
    SECRET_KEY = "your_secret_key"
    BASE_URL = "[https://open.hyxicloud.com](https://open.hyxicloud.com)"

    async with aiohttp.ClientSession() as session:
        # 1. Initialize the client
        client = HyxiApiClient(
            access_key=ACCESS_KEY,
            secret_key=SECRET_KEY,
            base_url=BASE_URL,
            session=session
        )

        # 2. Fetch device data
        try:
            device_data = await client.get_all_device_data()
            print("Successfully fetched HYXi data:")
            print(device_data)
        except Exception as e:
            print(f"Error communicating with HYXi Cloud: {e}")

if __name__ == "__main__":
    asyncio.run(main())

🛠️ Requirements

  • Python 3.11 or newer
  • aiohttp >= 3.8.0

⚠️ Disclaimer

This is an unofficial, community-driven project. It is not affiliated with, endorsed by, or connected to HYXiPower in any official capacity. Use this software at your own risk.

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

hyxi_cloud_api-0.1.4.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

hyxi_cloud_api-0.1.4-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file hyxi_cloud_api-0.1.4.tar.gz.

File metadata

  • Download URL: hyxi_cloud_api-0.1.4.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hyxi_cloud_api-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3c9be90da75e6ba04206b9f3c379cd86389a0013b5b3bf4e8eaf9fbf3cc80cde
MD5 8dd0bbcdb8f0c56b93a694861b7e7dbc
BLAKE2b-256 e925c330ec7615ffb456065345be708abd7bb8ac49c504de90b69e0c09f41fbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyxi_cloud_api-0.1.4.tar.gz:

Publisher: ci-cd.yml on Veldkornet/hyxi-cloud-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hyxi_cloud_api-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: hyxi_cloud_api-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hyxi_cloud_api-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8b28f2182ae65b20ce7ab2a34ba2d8b08404581fb0a6fea493cb189a48c869c7
MD5 998c40f7812c71e86b1397aa61858256
BLAKE2b-256 3725150c904b2a2f3cac7cde99b0947523b0256174dea852c191f77c48036da0

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyxi_cloud_api-0.1.4-py3-none-any.whl:

Publisher: ci-cd.yml on Veldkornet/hyxi-cloud-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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