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

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)

Source distribution for pyefergy 22.5.0
File Size Uploaded
pyefergy-22.5.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyefergy 22.5.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

22.5.0 This release

2 release files

22.1.1

2 release files

22.1.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page