Skip to main content

aioevtracker

Async Python client for EV Tracker API.

Installation

pip install aioevtracker

Usage

import asyncio
from aioevtracker import EVTrackerClient

async def main():
    async with EVTrackerClient(api_key="your-api-key") as client:
        # Get all cars
        cars = await client.get_cars()
        for car in cars:
            print(f"{car.name} (ID: {car.id})")

        # Get charging statistics
        state = await client.get_state()
        print(f"Monthly energy: {state.monthly_energy} kWh")
        print(f"Monthly cost: {state.monthly_cost} CZK")

        # Log a charging session
        session = await client.log_session_simple(
            energy_kwh=45.5,
            energy_source="GRID",
            rate_type="LOW",
        )
        print(f"Logged session ID: {session.id}")

asyncio.run(main())

With existing aiohttp session

import aiohttp
from aioevtracker import EVTrackerClient

async with aiohttp.ClientSession() as session:
    client = EVTrackerClient(
        api_key="your-api-key",
        session=session,
    )
    cars = await client.get_cars()

API Reference

EVTrackerClient

  • get_cars() - Get list of user's cars
  • get_default_car() - Get default car
  • get_state() - Get Home Assistant state with statistics
  • log_session(...) - Log a charging session with full control
  • log_session_simple(...) - Log a charging session with smart defaults
  • validate_api_key() - Validate the API key

Models

  • Car - Electric vehicle
  • ChargingSession - Charging session
  • HomeAssistantState - Statistics state

Exceptions

  • EVTrackerApiError - Base exception
  • EVTrackerAuthenticationError - Invalid API key (401/403)
  • EVTrackerConnectionError - Connection failed
  • EVTrackerRateLimitError - Rate limit exceeded (429)

License

MIT

Release files for aioevtracker 0.1.0

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

Source distribution (sdist)

Source distribution for aioevtracker 0.1.0
File Size Uploaded
aioevtracker-0.1.0.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aioevtracker 0.1.0
File Interpreter ABI Platform
aioevtracker-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.4 kB

Release files / aioevtracker-0.1.0.tar.gz

Download URL aioevtracker-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bb258aeaf154b2af86d0dc9782bd9236b59ca04f93542cf202e497a2119dfd2b
BLAKE2b-256 checksum
How to use checksums
16aa390df187ce7ad884aca44b3ad68d758a8fff8c6726461f7a46070d1dfeba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2025.

Transparency log

Release files / aioevtracker-0.1.0-py3-none-any.whl

Download URL aioevtracker-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2173d6bb820c72d4bf85a253c34fddbc3dbffb44406114b7e16b5789d1b005e2
BLAKE2b-256 checksum
How to use checksums
ce1df4a844759c3c89be517e4f6436a0a1cf6c187e4306f74fb5476200b30ad9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

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