Skip to main content

Python Library to access the myGEKKO Query API.

Project description

PyMyGekko

Python Library to access the myGEKKO Query API. This project is a work in progress. No guarantee to work until 1.0.0

PyPI - Version PyPI - Python Version BuyMeCoffee


Table of Contents

Installation

pip install pymygekko

Usage

from aiohttp import ClientSession

from PyMyGekko import MyGekkoApiClient
from PyMyGekko.resources.Lights import LightState

async with ClientSession() as session:
    api = MyGekkoApiClient(
        "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 license.


Project details


Release history Release notifications | RSS feed

This version

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymygekko-1.0.0.tar.gz (23.1 kB view hashes)

Uploaded Source

Built Distribution

pymygekko-1.0.0-py3-none-any.whl (18.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page