API library for the go-eCharger.
Project description
Go-eCharger API
A python API to access the Go-eCharger wallbox. Official Go-eCharger API documentation.
Installing the library locally
python3 -m pip install -e .
This is needed for the first time when working with the library/examples/tests.
Example usage
GOE_API_URL="https://REPLACE_ME.api.v3.go-e.io" GOE_API_TOKEN="REPLACE_ME" python3 examples/simple.py
or
from goechargerv2.goecharger import GoeChargerApi
charger = GoeChargerApi('provide_api_url', 'provide_api_token')
# or you can define additional optional parameters
# charger = GoeChargerApi('provide_api_url', 'provide_api_token', timeout=10, wait=True)
print(charger.request_status())
Development
Install required pip packages
python3 -m pip install -r requirements.txt
pre-commit install -t pre-push
Linting
pylint tests/*.py src/**/*.py
Unit testing
pytest
# show logs
pytest -o log_cli=true
# code coverage
pytest --durations=10 --cov-report term-missing --cov=src.goechargerv2 tests
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
Built Distribution
File details
Details for the file smart-energy.goecharger-api-0.3.1.tar.gz
.
File metadata
- Download URL: smart-energy.goecharger-api-0.3.1.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90006748d71fecdf5ec2e4eaed53641a6de97e50e69f8b66f1a6c963f7a77f52 |
|
MD5 | 35a48d2fde24fcdf933cc2ba04ebddbc |
|
BLAKE2b-256 | d0dc71f51d1b4316c46fb7a35071580948457ec6fc11a988cc8ce974d9f9df64 |
File details
Details for the file smart_energy.goecharger_api-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: smart_energy.goecharger_api-0.3.1-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2b5b963e7b125bdfccfb99678aa78b032ded2e550867b06c009e80bae3fd56b |
|
MD5 | b135de0341085348fc93cac088a16b65 |
|
BLAKE2b-256 | 8746c1b6bb2b21449c6e6f15af8843d3202cda3b8adf4a5f18bdc0850631bb8f |