Skip to main content

pyzonneplan

GitHub Release Python Versions Project Stage Project Maintenance License

GitHub Activity PyPI Downloads GitHub Last Commit Open in Dev Containers

Build Status Typing Status Code Coverage

Asynchronous Python client for the Zonneplan API.

About

pyzonneplan is an async client for the Zonneplan API, focused on:

  • Solar (PV) installation data
  • Dynamic pricing and energy consumption data
  • Home battery monitoring and control modes
  • EV charge point sessions and schedules

The library is under active development and endpoint coverage will keep expanding.

Installation

pip install pyzonneplan

Usage

Zonneplan authenticates with a one-time password mailed to the account address, rather than a plain username/password login:

import asyncio

from aiohttp import ClientSession
from pyzonneplan import ZonneplanAuth


async def main() -> None:
    async with ClientSession() as session:
        auth = ZonneplanAuth(session=session)
        challenge = await auth.async_request_otp("you@example.com", source_name="pyzonneplan")

        otp = input("Enter the one-time password mailed to you: ")
        token = await auth.async_submit_otp(challenge, otp)

        print("Access token:", token.access_token)


if __name__ == "__main__":
    asyncio.run(main())

Store token.as_dict() and restore it later with Token.from_dict(...); refresh it with auth.async_refresh_token(token) once it is close to token.expires_at.

More examples can be found in the examples directory.

Documentation

Project documentation and API reference: https://erwindouna.github.io/pyzonneplan/

Contributing

Contributions are welcome. Please open an issue or pull request.

For local development:

uv sync --all-groups && uv run pre-commit install

Run checks:

uv run pre-commit run --all-files

Run tests:

uv run pytest

License

MIT License

Copyright (c) 2026 Erwin Douna

Metadata

Release files for pyzonneplan 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 pyzonneplan 0.1.0
File Size Uploaded
pyzonneplan-0.1.0.tar.gz 15.2 kB Details

Built distribution (wheel)

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

Total release size: 31.7 kB

Release files / pyzonneplan-0.1.0.tar.gz

Download URL pyzonneplan-0.1.0.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b5a2934454550712cd2359d6b4f89ce34858d52041ce95470213173046ed7895
BLAKE2b-256 checksum
How to use checksums
8d0e43f9dbd0f0c55d86f388c6a3321c6049fa30a0821a13d1c857658a89015c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 29, 2026.

Transparency log

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

Download URL pyzonneplan-0.1.0-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ddefbedc677cf38f1377a9dd57de81c2cea75ebca6fb8ac24e934765c7c58de
BLAKE2b-256 checksum
How to use checksums
f977321f7c733e31589f157bb49bdfc4dcefbbf184ee39cee525c6d0dc80d480
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 29, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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