Metadata-Version: 2.1
Name: pykostal
Version: 0.0.2
Summary: package to communicate with Kostal Piko invertes
Home-page: https://github.com/DAMEK86/pykostal
Author: Andreas Rehn
Author-email: rehn.andreas86@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3
Description-Content-Type: text/markdown
Provides-Extra: dev
License-File: LICENSE

# pykostal - a python based kostal bridge

[![PyPI version](https://badge.fury.io/py/pykostal.svg)](https://pypi.org/project/pykostal/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pykostal.svg)
[![PyPI - Status](https://img.shields.io/pypi/status/pykostal.svg)](https://pypi.org/project/pykostal/)

Python module for [Kostal](https://www.kostal-solar-electric.com/) piko inverters supporting:

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

not supported:

- all settings
- events

ongoing:

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

## Installation

Run the following to install:

```python
pip install pykostal
```

## Usage

```python
import kostal

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

## Developing pykostal

Initially run the following in your virtualenv:

```bash
python setup.py bdist_wheel
```

Everytime you update setup.py, run the following in your virtualenv:

```bash
pip install -e .
```

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

```bash
pip install -e .[dev]
```

## publishing

```bash
python setup.py bdist_wheel sdist
twine upload dist/*
```


