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.1.tar.gz (30.2 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.2.1-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.2.1.tar.gz
Algorithm Hash digest
SHA256 74dc7876bab849fb546603962fffefad851f8bbe75cf1995cf5e0d4f3d45c7bc
MD5 3a9d4d6c3b35eea17a7b084075d0ecdc
BLAKE2b-256 d32ae9c9da2be9ff66c2ea63635ad61d8071df1bb4e4dcbdb0c1a41fab60cc32

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40e3fc2e151b74ba047892c261d45ea278b62665ec41a8744e65d414b7c27b6e
MD5 3d65051deeb3ad690c70bfdab851cc0a
BLAKE2b-256 cd4744af48b887eb291a5129ff25d06b5c12458ae37cb578cdefe133b4997b03

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