An API library for Efergy energy meters.
Project description
pyefergy
Python API client for Efergy.
Installation
python3 -m pip install pyefergy
Example usage
More examples can be found in the tests
directory.
"""Example usage of pyefergy."""
import asyncio
from pyefergy import Efergy
TOKEN = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
OFFSET = "America/New_York" # Accepts either a time zone or literal offset
async def async_example():
"""Example usage of pyefergy."""
api = Efergy(TOKEN, utc_offset=OFFSET)
async with api:
print(await api.async_get_reading("instant_readings"))
asyncio.get_event_loop().run_until_complete(async_example())
Contribute
All contributions are welcome!
- Fork the repository
- Clone the repository locally and open the devcontainer or use GitHub codespaces
- Do your changes
- Lint the files with
make lint
- Ensure all tests passes with
make test
- Ensure 100% coverage with
make coverage
- Commit your work, and push it to GitHub
- Create a PR against the
master
branch
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyefergy-22.1.0.tar.gz
(8.8 kB
view hashes)
Built Distribution
pyefergy-22.1.0-py3-none-any.whl
(12.5 kB
view hashes)
Close
Hashes for pyefergy-22.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8adf7ae8917b7ab15bde1a5e104c2d0cb55767957b80bd01e3e95d0fbc30c33 |
|
MD5 | 0334d9c2d6d0faa0bf4c8e0a9c9f8f6f |
|
BLAKE2b-256 | 3a3e1bd479832b449e953dd4c28109aa575bc6fb5466ddd4a9a006a3f7c2e80b |