Debian Codegraph @

/

debian aioaseko 1.0.0-2debian python3-aioaseko python aioaseko 1.0.0 debianinimakefilemarkdownpythonshelltomlyaml 22 files · 227 symbols
View dependency graph

Depends on

  • dh-python (dh-sequence-python3, pybuild-plugin-pyproject)
  • pyjwt (python3-jwt)
  • python3-defaults (python3-all)
  • setuptools (python3-setuptools)
  • debhelper-compat, python3-aiohttp, python3-apischema, python3-gql
README (full)

aioAseko package

PyPI PyPI - Downloads PyPI - License

An async Python wrapper for the Aseko Pool Live API.

The library supports Aseko ASIN AQUA devices. The Aseko ASIN Pool is partially supported. The library is currently limited to a selection of features available on aseko.cloud.

Installation

pip install aioaseko

Usage

Import

from aioaseko import Aseko

Create an Aseko instance and login

api = Aseko("[email protected]", "passw0rd")
await api.login()

Example

from asyncio import run

from aioaseko import Aseko, InvalidCredentials, Unit

async def main():
    api = Aseko("[email protected]", "passw0rd")
    try:
        await api.login()
    except InvalidCredentials:
        print("The username or password is wrong.")
        return
    units = await api.get_units()
    for unit in units:
        if isinstance(unit, Unit):
            print(f"Unit: {unit.name} ({unit.serial_number})")
            print(f"Air temperature: {unit.air_temperature}")
            print(f"Water flow to probes: {unit.water_flow_to_probes}")
run(main())
dir .github/
dir aioaseko/
dir debian/
file .gitignore
file COPYING
file COPYING.LESSER
file README.md
file pyproject.toml
file setup.py