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

Build

hatch build

Release

  • Increase version, then
hatch build
hatch publish -u __token__ -a <PyPiToken>

Project details


Release history Release notifications | RSS feed

This version

1.5.0

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.5.0.tar.gz (67.8 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.5.0-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.5.0.tar.gz
Algorithm Hash digest
SHA256 a11d7e60e582eded07385aba1758d8485e2cc52e9313a76c7a9b61a9ee288fca
MD5 6c4abdbed5e342ea00f1a7999642b51f
BLAKE2b-256 4a37c960c314b3dfe0dd2f673546ea6ae9b71526f50734fe6fbf928029500970

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymygekko-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16af95cb8d285343ca92841bb0d229c5aa92fab6c5c03990c2212452573e26f5
MD5 9092c4da6c4459a92c264a1d36d4e6db
BLAKE2b-256 b7f7845cd2d1bb0163623ece9b22149039d0f9b5ae7860e78f3e00c786339785

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