Async Python package for the Aseko Pool Live API
Project description
aioAseko package
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("aioAseko@example.com", "passw0rd")
await api.login()
Example
from asyncio import run
from aioaseko import Aseko, InvalidCredentials, Unit
async def main():
api = Aseko("aioAseko@example.com", "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())
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
aioaseko-1.0.0.tar.gz
(21.7 kB
view details)
Built Distribution
aioaseko-1.0.0-py3-none-any.whl
(26.2 kB
view details)
File details
Details for the file aioaseko-1.0.0.tar.gz
.
File metadata
- Download URL: aioaseko-1.0.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 210dbb715a46a0cad25e2f7b5d5f38c44b2090618b2f46be97c36198df82283f |
|
MD5 | 7a522f5485feb85fff3d8ffc8c5a0519 |
|
BLAKE2b-256 | 34ac6d54b888648dc67a330245b0efc75cd1600bbcd70da4ea2f6f71c6f3ce7a |
File details
Details for the file aioaseko-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: aioaseko-1.0.0-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c29d6e096fe009b8cae55920fd4e61817e828ca41f0ec86f0efeceac6e300d6a |
|
MD5 | e28870b9faed5a7ea5732cd4f60c34a8 |
|
BLAKE2b-256 | c60e2178df3958efcf6c707fcc7a355c2b7e1972a19ad8413532941ad1f14bc4 |