Easee EV Charger library
This library is an async thin wrapper around Easee's Rest API
Installation
You can install the libray from PyPI:
pip install pyeasee
The library is tested on Python 3.7 and Python 3.8
Command line tool
Run python -m pyeasee -h for help.
Usage of the library
Docs
Read the API documentation here
Small example
Easee is the connection class and Charger
from pyeasee import Easee, Charger, Site
async def main():
_LOGGER.info("Logging in using: %s %s", sys.argv[1], sys.argv[2])
easee = Easee(sys.argv[1], sys.argv[2])
chargers = await easee.get_chargers()
for charger in chargers:
state = await charger.get_state()
_LOGGER.info("Charger: %s status: %s", charger.name, state["chargerOpMode"])
sites = await easee.get_sites()
for site in sites:
_LOGGER.info("Get sites circuits chargers: %s", site["createdOn"])
charger = site.get_circuits()[0].get_chargers()[0]
state = await charger.get_state()
_LOGGER.info("Charger: %s status: %s", charger.name, state["chargerOpMode"])
await easee.close()
Development
This project uses black for code formatting and flake8 for linting. To autoformat and run lint run
make lint
Metadata
Release files for pyeasee 0.7.41
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyeasee-0.7.41.tar.gz | 16.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyeasee-0.7.41-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.0 kB
Release files / pyeasee-0.7.41.tar.gz
| Download URL | pyeasee-0.7.41.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54a1435ee1a910e5305f2176c4820817d657a390d1a911ae621b69d374274a18
|
|
BLAKE2b-256 checksum How to use checksums |
a042a32092f9124768df13b84f026a7b0361cfb30c4d87a35808dbbbc80a3100
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Release files / pyeasee-0.7.41-py3-none-any.whl
| Download URL | pyeasee-0.7.41-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
595b7556175ede0e867c0c92b7b7a41ed05ac263c7af19e5de912c488b83f0a5
|
|
BLAKE2b-256 checksum How to use checksums |
ab7ce5aaff41a920d8eab8e342f08b4820977243ed7077b4f0806de7f1d7c331
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|