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.25
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.25.tar.gz | 10.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyeasee-0.7.25-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.2 kB
Release files / pyeasee-0.7.25.tar.gz
| Download URL | pyeasee-0.7.25.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e751feb2483e2b147f1653174ca49518af551e1f97642f0503909d8a16c1360
|
|
BLAKE2b-256 checksum How to use checksums |
2e7aaab83970d660c2bdbfa96ff47ef7669a8e58e4b939147c3826ca05d0e6c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5
|
Release files / pyeasee-0.7.25-py3-none-any.whl
| Download URL | pyeasee-0.7.25-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5fad2c6878e74064126c62d5b0ea7a8adf5bce43443e80205c55f46876a9502
|
|
BLAKE2b-256 checksum How to use checksums |
d79c32e82c10ea73a47ccc9b057421dcd9baff2dd10f2cfb2304a8623ee0bf3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5
|