easee-0.7.9
توضیحات
Easee EV charger APi library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | easee-0.7.9 |
| نام | easee |
| نسخه کتابخانه | 0.7.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Niklas Fondberg |
| ایمیل نویسنده | niklas.fondberg@gmail.com |
| آدرس صفحه اصلی | https://github.com/fondberg/easee |
| آدرس اینترنتی | https://pypi.org/project/easee/ |
| مجوز | MIT |
 
[](https://www.buymeacoffee.com/fondberg)
# Easee EV Charger library
This library is a thin wrapper around [Easee's Rest API](https://api.easee.cloud/index.html)
## Installation
You can install the libray from [PyPI](https://pypi.org/project/easee/):
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](https://fondberg.github.io/easee/easee/)
### Small example
Easee is the connection class and Charger
```python
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
```
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
نحوه نصب
نصب پکیج whl easee-0.7.9:
pip install easee-0.7.9.whl
نصب پکیج tar.gz easee-0.7.9:
pip install easee-0.7.9.tar.gz