Easee EV Charger library
This library is a thin wrapper around Easee's Rest API
Installation
You can install the libray from PyPI:
pip install easee
The library is tested on Python 3.7 and Python 3.8
Command line tool
Run python -m easee -h for help.
Usage of the library
Docs
Read the API documentation here
Small example
Easee is the connection class and Charger
from easee 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 easee 0.7.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| easee-0.7.20.tar.gz | 10.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| easee-0.7.20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.0 kB
Release files / easee-0.7.20.tar.gz
| Download URL | easee-0.7.20.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9ecac660ffb3df2f1e0f42d2d8e6d79f92c511cbbd68154a9ad2f5722abd3a9
|
|
BLAKE2b-256 checksum How to use checksums |
5e406cb73e6f48641b078df6bb74fdba53d2a4c83f6589b09decbfb179a36d5c
|
| 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/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5
|
Release files / easee-0.7.20-py3-none-any.whl
| Download URL | easee-0.7.20-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44db3643c354e47dd24a0e50e1ee567f0f8bf1b07322e8d3bc77759decfa4d09
|
|
BLAKE2b-256 checksum How to use checksums |
9beabe90f33453caade9f798dfb746241101498fe109e1874967b179eaf368dd
|
| 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/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5
|