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 MyGekkoQueryApiClient
from PyMyGekko.resources.Lights import LightState

async with ClientSession() as session:
    api = MyGekkoQueryApiClient(
        "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.

Development

Setup

  • Install `hatch``
  • Create hatch environment
hatch env create

Execute Tests

hatch run pytest

Project details


Release history Release notifications | RSS feed

This version

1.3.2

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.3.2.tar.gz (47.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.3.2-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file pymygekko-1.3.2.tar.gz.

File metadata

  • Download URL: pymygekko-1.3.2.tar.gz
  • Upload date:
  • Size: 47.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for pymygekko-1.3.2.tar.gz
Algorithm Hash digest
SHA256 171baff08e6994e1e616131a459947aa3e0bdea591011b24398377527dda3ca4
MD5 eca9251dc0a7b1332ae87482fe2c5165
BLAKE2b-256 df968a61254d34d4b32d3c52093d664f83ac7eb99461c23cb8130498dc2d8928

See more details on using hashes here.

File details

Details for the file pymygekko-1.3.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pymygekko-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 69bb334bbaf912e33da441ed58acaad0d12cb75d3ed0222013bc3faa89e19c0e
MD5 38e17928a5f3624f1c5ab346b4ab6603
BLAKE2b-256 ef4ee9b5728a587366f74fcf53909eb2833af007309f9064a9596da3188c43ee

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