Metadata-Version: 2.4
Name: PyMyGekko
Version: 1.3.0
Summary: Python Library to access the myGEKKO Query API.
Project-URL: Documentation, https://github.com/StephanU/#readme
Project-URL: Issues, https://github.com/StephanU/PyMyGekko/issues
Project-URL: Source, https://github.com/StephanU/PyMyGekko
Author-email: Stephan Uhle <stephanu@gmx.net>
License-Expression: MIT
License-File: LICENSE
Keywords: mygekko
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.12
Requires-Dist: aiohttp>=3.8
Description-Content-Type: text/markdown

# PyMyGekko

Python Library to access the myGEKKO Query API.

[![PyPI - Version](https://img.shields.io/pypi/v/pymygekko.svg)](https://pypi.org/project/pymygekko)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pymygekko.svg)](https://pypi.org/project/pymygekko)
[![BuyMeCoffee][buymecoffeebadge]][buymecoffee]

---

**Table of Contents**

- [Installation](#installation)
- [License](#license)

## Installation

```console
pip install pymygekko
```

## Usage

```python
from aiohttp import ClientSession

from PyMyGekko import MyGekkoQueryApiClient
from PyMyGekko.resources.Lights import LightState

async with ClientSession() as session:
    api = MyGekkoQueryApiClient(
        "USERNAME",
        "APIKEY",
        "GEKKOID",
        session,
    )

    await api.read_data()

    # Read lights
    lights = api.get_lights()
    # assuming there is a light...
    await lights[0].set_state(LightState.ON)
```

## License

`pymygekko` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.

---

[buymecoffee]: https://www.buymeacoffee.com/stephanu
[buymecoffeebadge]: https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg?style=for-the-badge
