Skip to main content

Python Library to access the myGEKKO Query API.

Project description

PyMyGekko

Python Library to access the myGEKKO Query API.

PyPI - Version PyPI - Python Version BuyMeCoffee


Table of Contents

Installation

pip install pymygekko

Usage

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


Project details


Release history Release notifications | RSS feed

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.2.0.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

pymygekko-1.2.0-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file pymygekko-1.2.0.tar.gz.

File metadata

  • Download URL: pymygekko-1.2.0.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for pymygekko-1.2.0.tar.gz
Algorithm Hash digest
SHA256 87e0890f08e68c1f77c62eafb8390ed466416f2cbee60b49dca3b6fe2b9e7917
MD5 ddeeba194e274e6d4463054a45747188
BLAKE2b-256 8afdb62003f4d1727303abd5f56c560c48cf073553503d614495be47dc68b6cb

See more details on using hashes here.

File details

Details for the file pymygekko-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: pymygekko-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for pymygekko-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9098b06e263097681f8a5532f1a93f2679392939f8328579f53361084066d0e
MD5 29a8617694fd270f338d617f7d09fe18
BLAKE2b-256 4ea28ceb8461f178b1725d5f7f8bcfea82a157f089e3619fc9b672e37511ac24

See more details on using hashes here.

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