Skip to main content

Go-eCharger API

workflow workflow PyPI version

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

Release files for smart-energy.goecharger-api 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smart-energy.goecharger-api 0.3.1
File Size Uploaded
smart-energy.goecharger-api-0.3.1.tar.gz 19.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smart-energy.goecharger-api 0.3.1
File Interpreter ABI Platform
smart_energy.goecharger_api-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 38.1 kB

Release files / smart-energy.goecharger-api-0.3.1.tar.gz

Download URL smart-energy.goecharger-api-0.3.1.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
90006748d71fecdf5ec2e4eaed53641a6de97e50e69f8b66f1a6c963f7a77f52
BLAKE2b-256 checksum
How to use checksums
d0dc71f51d1b4316c46fb7a35071580948457ec6fc11a988cc8ce974d9f9df64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / smart_energy.goecharger_api-0.3.1-py3-none-any.whl

Download URL smart_energy.goecharger_api-0.3.1-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2b5b963e7b125bdfccfb99678aa78b032ded2e550867b06c009e80bae3fd56b
BLAKE2b-256 checksum
How to use checksums
8746c1b6bb2b21449c6e6f15af8843d3202cda3b8adf4a5f18bdc0850631bb8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page