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.2.0rc1.tar.gz (30.6 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.0rc1-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.2.0rc1.tar.gz
Algorithm Hash digest
SHA256 a586557559597a9aecb532cb1b3b86ae9575b42a447b6857f33556f32eb6690d
MD5 0ada4214283f06a384f156127da9f3dd
BLAKE2b-256 2557824d912bda58e6c1d15d10438aa4db1ffdf7484340865d5c2b46032ea27c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.2.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 6427a1b0a31549c75b4ea6a54bb366ff59b1db5e2843d22a4871bba10b17ac18
MD5 e4683047da486831436c03eea86adf31
BLAKE2b-256 90e0c5b3378853eb38ae38ca68d7e8f1a8f744a1408b4cb9a95243fdc7e069cd

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