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.3

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.3
File Size Uploaded
pyzonneplan-0.1.3.tar.gz 17.5 kB Details

Built distribution (wheel)

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

Total release size: 36.7 kB

Release files / pyzonneplan-0.1.3.tar.gz

Download URL pyzonneplan-0.1.3.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1144e846cf09fc1dae9ea0a9b4140e1eada85c4cce74aea63143171c3a9666aa
BLAKE2b-256 checksum
How to use checksums
b0ab0ad7448516461503b2b63837b767f65a52864c26ddf2c38626bda832c8dc
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 Sep 26, 2026.

Transparency log

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

Download URL pyzonneplan-0.1.3-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bce8e2c9632685ba18ed55b65720a0a0ae8a04806afd351ca87d1e14f4c2fc0c
BLAKE2b-256 checksum
How to use checksums
2934812be627501142397ac05bd5e4366c6ed265cd4d9c14fe6f5d824af7a846
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 Sep 26, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.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