Skip to main content

API library for the go-eCharger.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart-energy.goecharger-api-0.3.1.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file smart-energy.goecharger-api-0.3.1.tar.gz.

File metadata

File hashes

Hashes for smart-energy.goecharger-api-0.3.1.tar.gz
Algorithm Hash digest
SHA256 90006748d71fecdf5ec2e4eaed53641a6de97e50e69f8b66f1a6c963f7a77f52
MD5 35a48d2fde24fcdf933cc2ba04ebddbc
BLAKE2b-256 d0dc71f51d1b4316c46fb7a35071580948457ec6fc11a988cc8ce974d9f9df64

See more details on using hashes here.

File details

Details for the file smart_energy.goecharger_api-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for smart_energy.goecharger_api-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2b5b963e7b125bdfccfb99678aa78b032ded2e550867b06c009e80bae3fd56b
MD5 b135de0341085348fc93cac088a16b65
BLAKE2b-256 8746c1b6bb2b21449c6e6f15af8843d3202cda3b8adf4a5f18bdc0850631bb8f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page