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.3.1.tar.gz (31.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.3.1-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.3.1.tar.gz
Algorithm Hash digest
SHA256 22495c1f178655f2d2bd3b5ac5b9c7d0699249cb529e1aa672794fb277c16dcd
MD5 559487cde3cf06a58309f1765f0c9dc5
BLAKE2b-256 30e3be6214bbe52f80329a1b2f1c1089e74004b583c7d8b1e190ae47b56c7948

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e85450f86287497d1902985e1858fa645fa3abd8e365734a32b576187fd2ce50
MD5 38a2a3758286efa1afccf10f7980fa94
BLAKE2b-256 5a2ee12f0e287a149ae75b3bc7dbe05a42f8c1972ab7a286366dda8ef54a2221

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