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
- Install poetry
- Install dependencies:
poetry install - Do your changes
- Lint the files with
poetry run pylint pyefergy && black . && ruff check && mypy pyefergy - Ensure all tests pass with
poetry run pytest - Ensure 100% coverage
- Commit your work, and push it to GitHub
- Create a PR against the
masterbranch
Metadata
Release files for pyefergy 22.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyefergy-22.5.0.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyefergy-22.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / pyefergy-22.5.0.tar.gz
| Download URL | pyefergy-22.5.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ca1146bb2f34227e6faaae402bda5bf0ee414e49f7549be624d40b999f78c51
|
|
BLAKE2b-256 checksum How to use checksums |
bd2a89a26da791b94bf0b55c97c73623bf0988adaada85204bb62876c8151f2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1018-azure
|
Release files / pyefergy-22.5.0-py3-none-any.whl
| Download URL | pyefergy-22.5.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc776db65363bdee4d005a63b4730f5233c5a2f8ee53b7c54af026ec05cbfaed
|
|
BLAKE2b-256 checksum How to use checksums |
ba908656b5775bcfa6a4814a91d8b710324c5b8335f48fe7a31ebb991c9ffbd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1018-azure
|