Skip to main content

pykostal - a python based kostal bridge

PyPI version PyPI - Status Tests

Python 3.9+ compatible - Tested on Python 3.9, 3.10, 3.11, 3.12, and 3.13.

Python module for Kostal piko inverters supporting:

  • current-values
    • analog-inputs
    • battery
    • grid
    • home
    • pv-generator
    • s0-in
  • home
  • info.versions
  • statistics
    • day
    • log-data
    • total
  • events

not supported:

  • all settings

ongoing:

  • response code mapping (e.g. status code)

Installation

Run the following to install:

pip install pykostal

Usage

import kostal

# create instance
inverter = kostal.Piko(aiohttp.ClientSession(), url)

Developing pykostal

Prerequisites

  • Python 3.9 or higher (tested up to Python 3.13)

Initial setup

Run the following in your virtual environment:

python -m build

Development installation

Every time you update the project, run the following in your virtual environment:

pip install -e .

To install pykostal along with the tools you need to develop and run tests, run the following in your virtual environment:

pip install -e '.[dev]'

Running tests

pytest

Testing across Python versions

tox

Publishing

Modern approach (recommended)

python -m build
twine upload dist/*

Legacy approach

python setup.py bdist_wheel sdist
twine upload dist/*

Release files for pykostal 0.2.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 pykostal 0.2.0
File Size Uploaded
pykostal-0.2.0.tar.gz 9.4 kB Details

Built distribution (wheel)

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

Total release size: 21.6 kB

Release files / pykostal-0.2.0.tar.gz

Download URL pykostal-0.2.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a6adfd0699ea579b6ce47b3259c765e41e4199ae40659d44c078a705150d6333
BLAKE2b-256 checksum
How to use checksums
e889256854f7cf0ac8e07e00e446e93f5bc499f5e7973885a9f19ec1344fd84a
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 7, 2026.

Transparency log

Release files / pykostal-0.2.0-py3-none-any.whl

Download URL pykostal-0.2.0-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4293b1b4fd0e3fe4197b30d12bd6cd5f3606b746ac1006e049178ef909b59c0
BLAKE2b-256 checksum
How to use checksums
718e63dc412022c97cff1d91b216f6ac0afaf1198d75f7bc92bf7dce1cecbc12
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 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.2

2 release files

0.0.1

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