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

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.1.0rc1.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymygekko-1.1.0rc1-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file pymygekko-1.1.0rc1.tar.gz.

File metadata

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

File hashes

Hashes for pymygekko-1.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 53d09de33ca47ab3d07597c70b63800ead9b4c0bb317a65bef4eb3f0f1faec0c
MD5 e63cd553265a3730dc3f1d4ea7f8d483
BLAKE2b-256 07f90ada86dfe34398c180462d9b57793af240bb68ff193745a89d1b6d836d58

See more details on using hashes here.

File details

Details for the file pymygekko-1.1.0rc1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pymygekko-1.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 896512591d70a5fbc4abdc49c0ddfff14f96893c4ec5fd77dd0ebda9e1ed7e67
MD5 bf89857631c03b4f1454d7b1919cc882
BLAKE2b-256 9ff7d7ac651c0f50ad41d2a59f4bf24c675def453dee36d9625d480822e23595

See more details on using hashes here.

Supported by

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