Skip to main content

Async Python client for the Belgian Blink Charging EVA portal (eva.blinkcharging.be)

Project description

blinkcharging-be-eva-portal

Async Python client for the Blink Charging Belgium / Blue Corner customer portal at eva.blinkcharging.be.

The portal talks to api.bluecorner.be. This library logs in with your portal email + password, handles OAuth token refresh, and exposes the charger + session endpoints you care about as typed dataclasses.

Async, typed, and suitable for polling clients that want a single async_get_snapshot() call.

⚠️ Unofficial. Not affiliated with Blink Charging or Blue Corner.

For endpoint-level reference and sample payloads, see docs/API.md.

Install

pip install blinkcharging-be-eva-portal

For local development in this repository:

pip install -e .

Usage

import asyncio
from blinkcharging_be_eva_portal import BlinkChargingClient

async def main():
    async with BlinkChargingClient("you@example.com", "password") as client:
        user = await client.async_get_user_info()
        chargers = await client.async_get_charge_points()
        for s in chargers:
            cp = await client.async_get_charge_point_minimal(s.id)
            for conn in cp.connectors:
                print(conn.state, conn.active_session)

asyncio.run(main())

One-shot snapshot (HA-style)

snap = await client.async_get_snapshot()
# snap = {"user": UserInfo, "charge_points": {id: ChargePoint, ...}}

CLI

# Put credentials in .env (copy from .env.example), then:
python -m blinkcharging_be_eva_portal

If installed from PyPI, use pip install blinkcharging-be-eva-portal first.

What the API gives you

Per connector (on each charger):

  • stateAVAILABLE, OCCUPIED, CHARGING, OFFLINE, …
  • state_detail — e.g. SuspendedEV (car said no more)
  • session_statePARKING, CHARGING, FINISHED
  • power_w, current_a, voltage_v, num_phases — connector capability
  • last_meter_value_wh — lifetime cumulative energy (great for HA energy dashboard)
  • active_session — live Session with consumption_wh and current_speed_w (live power)

Per session:

  • session_start, session_end, charging_start, charging_end
  • consumption_wh, current_speed_w, max_speed_w
  • meter_start, meter_end

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

blinkcharging_be_eva_portal-0.1.0.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blinkcharging_be_eva_portal-0.1.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file blinkcharging_be_eva_portal-0.1.0.tar.gz.

File metadata

  • Download URL: blinkcharging_be_eva_portal-0.1.0.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for blinkcharging_be_eva_portal-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fe98bda3bef0cfe7ef35c745f04634c974221ee32181cd5f6c041943b946600a
MD5 1fcfb6754bebdd20e68fc99c6d0d4c85
BLAKE2b-256 34f4a2c368867d2b99ca01c18c7093561915bfd6976b664a3dd6867e9486aee8

See more details on using hashes here.

File details

Details for the file blinkcharging_be_eva_portal-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: blinkcharging_be_eva_portal-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for blinkcharging_be_eva_portal-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c42592812cc35a92b5c8f5a57a3d7dab1504cc4a630775c2d44bb33008d82656
MD5 b0156f277a8aef33aa90cc50f1a46251
BLAKE2b-256 393d4e8cc6c63504d892df8f549cc3f88ae22e3a3e500851f54e842f07c363d2

See more details on using hashes here.

Supported by

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