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.0rc7.tar.gz (28.0 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.0rc7-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.1.0rc7.tar.gz
Algorithm Hash digest
SHA256 2f3b6054c8ff4d352d67a38629f7d4652df09b1564b3ffec91a49132ebcd3682
MD5 999384bf2b4f099d0a43871fcf097a22
BLAKE2b-256 b20732b077ecf94b05ea6d22fa5f41a913492b424a3cabaf70adb7f034fc9727

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.1.0rc7-py3-none-any.whl
Algorithm Hash digest
SHA256 aa8cca1926d257ad16c5fe62e0c98e5d4fcc76a86594db46836fb3c18c876519
MD5 708d15a574da3361b66eee64c414e225
BLAKE2b-256 30248669910b22f7d480c0ac64ada07645687f6578883b7d9d13b4734457256c

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