egauge-async-0.1.2


توضیحات

Async client for eGauge energy monitor (https://www.egauge.net)
ویژگی مقدار
سیستم عامل -
نام فایل egauge-async-0.1.2
نام egauge-async
نسخه کتابخانه 0.1.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Nic Eggert
ایمیل نویسنده nic@eggert.io
آدرس صفحه اصلی https://github.com/neggert/egauge-async
آدرس اینترنتی https://pypi.org/project/egauge-async/
مجوز GPL-3.0-only
# Egauge-Async `asyncio` APIs for communicating with [eGauge](https://www.egauge.net) meters. ## Examples ### Get current rates ```python import asyncio from egauge_async import EgaugeClient async def get_current_rates(): egauge = EgaugeClient("http://egaugehq.d.egauge.net") current_readings = egauge.get_current_rates() print(current_readings) asyncio.run(get_current_rates()) ``` ### Get weekly changes over the last 4 weeks ```python import asyncio from egauge_async import EgaugeClient async def get_weekly_changes(): egauge = EgaugeClient("http://egaugehq.d.egauge.net") weekly_changes = egauge.get_weekly_changes(num_weeks=4) print(weekly_changes) asyncio.run(get_weekly_changes()) ``` ### Get available registers ```python import asyncio from egauge_async import EgaugeClient async def get_registers(): egauge = EgaugeClient("http://egaugehq.d.egauge.net") instantaneous_registers = egauge.get_instantaneous_registers()j print(instantaneous_registers) historical_registers = egauge.get_historical_registers() print(historical_registers) asyncio.run(get_historical_registers()) ``` ## Implementation Details This package uses the publically-documented [XML API](https://kb.egauge.net/books/egauge-meter-communication/page/xml-api) provided by eGauge Systems. ## Disclaimer This project is not affiliated with, endorsed by, or sponsored by eGauge Systems LLC. Any product names, logos, brands, or other trademarks are the property of their respective trademark holders.


نیازمندی

مقدار نام
>=0.16.0 httpx


زبان مورد نیاز

مقدار نام
>=3.7,<4.0 Python


نحوه نصب


نصب پکیج whl egauge-async-0.1.2:

    pip install egauge-async-0.1.2.whl


نصب پکیج tar.gz egauge-async-0.1.2:

    pip install egauge-async-0.1.2.tar.gz