Easee EV charger APi library
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easee-0.7.20.tar.gz
(10.7 kB
view details)
Built Distribution
easee-0.7.20-py3-none-any.whl
(12.3 kB
view details)
File details
Details for the file easee-0.7.20.tar.gz
.
File metadata
- Download URL: easee-0.7.20.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9ecac660ffb3df2f1e0f42d2d8e6d79f92c511cbbd68154a9ad2f5722abd3a9 |
|
MD5 | 9d6e3b0aef3fbae59e0b2198d54115c6 |
|
BLAKE2b-256 | 5e406cb73e6f48641b078df6bb74fdba53d2a4c83f6589b09decbfb179a36d5c |
File details
Details for the file easee-0.7.20-py3-none-any.whl
.
File metadata
- Download URL: easee-0.7.20-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44db3643c354e47dd24a0e50e1ee567f0f8bf1b07322e8d3bc77759decfa4d09 |
|
MD5 | 04714c0854641cf0e92fa94acc2b7aed |
|
BLAKE2b-256 | 9beabe90f33453caade9f798dfb746241101498fe109e1874967b179eaf368dd |