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
Close
Hashes for smart_energy.goecharger_api-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83cc6cd1b8162c7ef12fdedd0267478a9f0ecba20df5d324aef642d731c55fa6 |
|
MD5 | a16ba142c72bb74df92168f4682ea551 |
|
BLAKE2b-256 | 0d68b337b8d0f4109e159296a64a1bfe119ceebc9aef1b43fe27a0660655c11d |
Close
Hashes for smart_energy.goecharger_api-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a1cee993a359bf280b544b88d54f0a7c5cff12fcf7286d17eb000d58c8393f4 |
|
MD5 | 8be8bec762300d6132d942c99dd3f199 |
|
BLAKE2b-256 | 617f45e786313f96be5aa594d16855f6245fa11fd354ff2a0cfcbe9ee43419bf |