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.0rc5.tar.gz (27.3 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.0rc5-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.1.0rc5.tar.gz
Algorithm Hash digest
SHA256 1fd4eb7269356c3768b7d50d41c372855d38bab2988797af4a5a046693990929
MD5 a5f5c4de4c1ba844fe1d10f0c5790507
BLAKE2b-256 6573405665edcdb8f9f527f4f6f4d856e9843feef8e0405c1651fe930f63424a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.1.0rc5-py3-none-any.whl
Algorithm Hash digest
SHA256 ff73e217236929e0a6fe6e0dd846fa2501a30e8901d81c74ba11ba1ee6ee9a38
MD5 b60614204fd4b814908345080da8b55c
BLAKE2b-256 0622c9cbbfd4efc98a7ef7e8c9ea94c0d4ae2472b3027ad013d8f1b0c5cc33ab

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