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.31
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.31.tar.gz | 15.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyeasee-0.7.31-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.4 kB
Release files / pyeasee-0.7.31.tar.gz
| Download URL | pyeasee-0.7.31.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3554ae77db1ec7ea17a9789601b185c2ebd961b7f865486d5e9d3aa0e601d67
|
|
BLAKE2b-256 checksum How to use checksums |
7547993459b8198e1c54be6ff77da17024299f8c937629f0efb9f514079a8047
|
| 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.5
|
Release files / pyeasee-0.7.31-py3-none-any.whl
| Download URL | pyeasee-0.7.31-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a45447f9b9fc61dd44fa8b2c4b843e4f8b582ea82839563a8fa1e119ba95c32
|
|
BLAKE2b-256 checksum How to use checksums |
be29529d547e3824236eb5d844a04ba0b7e7bbf7684d69b4311865d088e85043
|
| 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.5
|