# aioAseko package
[![PyPI](https://img.shields.io/pypi/v/aioaseko)](https://pypi.org/project/aioaseko/) ![PyPI - Downloads](https://img.shields.io/pypi/dm/aioaseko) [![PyPI - License](https://img.shields.io/pypi/l/aioaseko?color=blue)](https://github.com/milanmeu/aioaseko/blob/main/COPYING)
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
```bash
pip install aioaseko
```
## Usage
### Import
```python
from aioaseko import Aseko
```
### Create an `Aseko` instance and login
```python
api = Aseko("aioAseko@example.com", "passw0rd")
await api.login()
```
## Example
```python
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())
```
Raw data
{
"_id": null,
"home_page": "https://github.com/milanmeu/aioaseko",
"name": "aioaseko",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "aseko pool live api asin aqua",
"author": "Milan Meulemans",
"author_email": "milan.meulemans@live.be",
"download_url": "https://files.pythonhosted.org/packages/34/ac/6d54b888648dc67a330245b0efc75cd1600bbcd70da4ea2f6f71c6f3ce7a/aioaseko-1.0.0.tar.gz",
"platform": null,
"description": "# aioAseko package \n[![PyPI](https://img.shields.io/pypi/v/aioaseko)](https://pypi.org/project/aioaseko/) ![PyPI - Downloads](https://img.shields.io/pypi/dm/aioaseko) [![PyPI - License](https://img.shields.io/pypi/l/aioaseko?color=blue)](https://github.com/milanmeu/aioaseko/blob/main/COPYING)\n\nAn async Python wrapper for the Aseko Pool Live API.\n\nThe library supports Aseko ASIN AQUA devices.\nThe Aseko ASIN Pool is partially supported.\nThe library is currently limited to a selection of features available on aseko.cloud.\n\n\n## Installation\n```bash\npip install aioaseko\n```\n\n## Usage\n### Import\n```python\nfrom aioaseko import Aseko\n```\n\n### Create an `Aseko` instance and login\n```python\napi = Aseko(\"aioAseko@example.com\", \"passw0rd\")\nawait api.login()\n```\n\n## Example\n```python\nfrom asyncio import run\n\nfrom aioaseko import Aseko, InvalidCredentials, Unit\n\nasync def main():\n api = Aseko(\"aioAseko@example.com\", \"passw0rd\")\n try:\n await api.login()\n except InvalidCredentials:\n print(\"The username or password is wrong.\")\n return\n units = await api.get_units()\n for unit in units:\n if isinstance(unit, Unit):\n print(f\"Unit: {unit.name} ({unit.serial_number})\")\n print(f\"Air temperature: {unit.air_temperature}\")\n print(f\"Water flow to probes: {unit.water_flow_to_probes}\")\nrun(main())\n```\n",
"bugtrack_url": null,
"license": "LGPLv3+",
"summary": "Async Python package for the Aseko Pool Live API",
"version": "1.0.0",
"project_urls": {
"Bug Tracker": "https://github.com/milanmeu/aioaseko/issues",
"Documentation": "https://github.com/milanmeu/aioaseko/blob/main/README.md",
"Donate": "https://github.com/sponsors/milanmeu",
"Homepage": "https://github.com/milanmeu/aioaseko",
"Source Code": "https://github.com/milanmeu/aioaseko/tree/main/aioaseko"
},
"split_keywords": [
"aseko",
"pool",
"live",
"api",
"asin",
"aqua"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c60e2178df3958efcf6c707fcc7a355c2b7e1972a19ad8413532941ad1f14bc4",
"md5": "e28870b9faed5a7ea5732cd4f60c34a8",
"sha256": "c29d6e096fe009b8cae55920fd4e61817e828ca41f0ec86f0efeceac6e300d6a"
},
"downloads": -1,
"filename": "aioaseko-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e28870b9faed5a7ea5732cd4f60c34a8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 26244,
"upload_time": "2024-09-15T18:21:41",
"upload_time_iso_8601": "2024-09-15T18:21:41.815812Z",
"url": "https://files.pythonhosted.org/packages/c6/0e/2178df3958efcf6c707fcc7a355c2b7e1972a19ad8413532941ad1f14bc4/aioaseko-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "34ac6d54b888648dc67a330245b0efc75cd1600bbcd70da4ea2f6f71c6f3ce7a",
"md5": "7a522f5485feb85fff3d8ffc8c5a0519",
"sha256": "210dbb715a46a0cad25e2f7b5d5f38c44b2090618b2f46be97c36198df82283f"
},
"downloads": -1,
"filename": "aioaseko-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "7a522f5485feb85fff3d8ffc8c5a0519",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 21685,
"upload_time": "2024-09-15T18:21:43",
"upload_time_iso_8601": "2024-09-15T18:21:43.334969Z",
"url": "https://files.pythonhosted.org/packages/34/ac/6d54b888648dc67a330245b0efc75cd1600bbcd70da4ea2f6f71c6f3ce7a/aioaseko-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-15 18:21:43",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "milanmeu",
"github_project": "aioaseko",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "aioaseko"
}