aioairq-0.2.4
توضیحات
Asynchronous library to retrieve data from air-Q devices.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aioairq-0.2.4 |
| نام | aioairq |
| نسخه کتابخانه | 0.2.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Daniel Lehmann <daniel.lehmann@air-q.com>, Renat Sibgatulin <renat.sibgatulin@air-q.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/aioairq/ |
| مجوز | Apache License, Version 2.0 |
[](https://pypi.org/project/aioairq/0.1.1/)
[](https://pypi.org/project/aioairq/0.1.1/)
# PyPI package `aioairq`
Python library for asynchronous data access to local air-Q devices.
## Retrieve data from air-Q
At its present state, `AirQ` requires an `aiohttp` session to be provided by the user:
```python
import asyncio
import aiohttp
from aioairq import AirQ
ADDRESS = "123ab_air-q.local"
PASSWORD = "airqsetup"
async def main():
async with aiohttp.ClientSession() as session:
airq = AirQ(ADDRESS, PASSWORD, session)
config = await airq.config
print(f"Available sensors: {config['sensors']}")
data = await airq.data
print(f"Momentary data: {data}")
asyncio.run(main())
```
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
| - | pycryptodome |
| - | pytest |
| - | pytest-asyncio |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl aioairq-0.2.4:
pip install aioairq-0.2.4.whl
نصب پکیج tar.gz aioairq-0.2.4:
pip install aioairq-0.2.4.tar.gz