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.0rc3.tar.gz (26.5 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.0rc3-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.1.0rc3.tar.gz
Algorithm Hash digest
SHA256 84939d2908aa6a2d9d231f163581f882e2493c6f64077325f056056e8310f022
MD5 aae18cabef8c0bea939600400cbcf5d3
BLAKE2b-256 089a50050dceff8816e6d174c03a2fc20d76166c49f103d0ecd3f30b52db45ae

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.1.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 290b4a07074d85de9437b1f06d1b74a24ed6bddf70e76ce2904517139075ea5e
MD5 8b3c3edd0f68b0df65028ec01b2c18b5
BLAKE2b-256 42514fb6ac42b106637005b1561b550002657954dcf62083007252c52918f10d

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