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.0rc6.tar.gz (27.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.1.0rc6-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.1.0rc6.tar.gz
Algorithm Hash digest
SHA256 70051523f09b6c48a7287aa8c17a370358ef9b05d9161c1fe944e98a88d98410
MD5 a372dea18e820a85d92730089bceb7f4
BLAKE2b-256 1d4c4c9926da64ce1836eeb0bd36bf69470da753494b0cb0e756dc7bf9447c56

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.1.0rc6-py3-none-any.whl
Algorithm Hash digest
SHA256 9c63a6880423444c6b3e45ce0a5c81c4d5ec2af7ac2be228efb7d9972b8a91a1
MD5 92062e1d8263a382efa2389e97aa10cf
BLAKE2b-256 63056f7004d6d77f22a8652d8001373f2a65f4647db9827668b6fee7efb01270

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