aiomodernforms-0.1.8
توضیحات
Asynchronous Python client for Modern Forms fans.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aiomodernforms-0.1.8 |
| نام | aiomodernforms |
| نسخه کتابخانه | 0.1.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Brian Towles |
| ایمیل نویسنده | brian@towles.com |
| آدرس صفحه اصلی | https://github.com/wonderslug/aiomodernforms |
| آدرس اینترنتی | https://pypi.org/project/aiomodernforms/ |
| مجوز | MIT license |
# Python: Async IO Modern Forms API Client


[](https://opensource.org/licenses/MIT)

Asynchronous Python client for Modern Forms Fans.
## About
This package allows you to control and monitor Modern Forms fans
programmatically. It is mainly created to allow third-party programs to automate
the behavior of the Modern Forms fans
## Installation
```bash
pip install aiomodernforms
```
## Usage
```python
"""Asynchronous Python client for Async IO Modern Forms fan."""
import asyncio
from datetime import datetime, timedelta
import aiomodernforms
from aiomodernforms.const import LIGHT_POWER_ON
async def main():
"""Turn on the fan light."""
async with aiomodernforms.ModernFormsDevice("192.168.3.197") as fan:
await fan.update()
print(fan.status)
await fan.light(
on=LIGHT_POWER_ON,
brightness=50,
sleep=datetime.now() + timedelta(minutes=2),
)
print(fan.status)
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```
نیازمندی
| مقدار | نام |
|---|---|
| >=3.0.0 | aiohttp |
| - | yarl |
| >=1.9.0 | backoff |
نحوه نصب
نصب پکیج whl aiomodernforms-0.1.8:
pip install aiomodernforms-0.1.8.whl
نصب پکیج tar.gz aiomodernforms-0.1.8:
pip install aiomodernforms-0.1.8.tar.gz