Skip to main content

pyefergy

codecov python version PyPI Actions

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!

  1. Fork the repository
  2. Clone the repository locally and open the devcontainer or use GitHub codespaces
  3. Install poetry
  4. Install dependencies: poetry install
  5. Do your changes
  6. Lint the files with poetry run pylint pyefergy && black . && ruff check && mypy pyefergy
  7. Ensure all tests pass with poetry run pytest
  8. Ensure 100% coverage
  9. Commit your work, and push it to GitHub
  10. Create a PR against the master branch

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.5.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyefergy-22.5.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file pyefergy-22.5.0.tar.gz.

File metadata

  • Download URL: pyefergy-22.5.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1018-azure

File hashes

Hashes for pyefergy-22.5.0.tar.gz
Algorithm Hash digest
SHA256 1ca1146bb2f34227e6faaae402bda5bf0ee414e49f7549be624d40b999f78c51
MD5 279ae9283e4ce6d97cb94cda48296ebe
BLAKE2b-256 bd2a89a26da791b94bf0b55c97c73623bf0988adaada85204bb62876c8151f2d

See more details on using hashes here.

File details

Details for the file pyefergy-22.5.0-py3-none-any.whl.

File metadata

  • Download URL: pyefergy-22.5.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1018-azure

File hashes

Hashes for pyefergy-22.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc776db65363bdee4d005a63b4730f5233c5a2f8ee53b7c54af026ec05cbfaed
MD5 fc89def5b4af2d4d00c0e57fa5dcf127
BLAKE2b-256 ba908656b5775bcfa6a4814a91d8b710324c5b8335f48fe7a31ebb991c9ffbd1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

22.5.0 This release

2 files

22.1.1

2 files

22.1.0

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page