Skip to main content

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>

Metadata

Release files for PyMyGekko 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyMyGekko 1.6.0
File Size Uploaded
pymygekko-1.6.0.tar.gz 63.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyMyGekko 1.6.0
File Interpreter ABI Platform
pymygekko-1.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 98.7 kB

Release files / pymygekko-1.6.0.tar.gz

Download URL pymygekko-1.6.0.tar.gz
Size 63.2 kB
Tags Source
SHA-256 checksum
How to use checksums
15f12770b4ff700c9b53b94f7c95fa3a72c9c0b54ea037a70ba6f4d1a3a8e05f
BLAKE2b-256 checksum
How to use checksums
08b43d9902baa5d710f824aba1905e00fe18b30097f5bd03f226432e53cd5e66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.14.4 HTTPX/0.28.1

Release files / pymygekko-1.6.0-py3-none-any.whl

Download URL pymygekko-1.6.0-py3-none-any.whl
Size 35.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec0b06606590cdd689f8e6c98416419f7ac121ec8e3857d9fb534460c68451ba
BLAKE2b-256 checksum
How to use checksums
fc245e5ab23dbb9198a8129e0c15fb3af11a2c7ab84c36e3e980bd2e7e53e006
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.14.4 HTTPX/0.28.1

Release history Release notifications | RSS feed

This release

1.6.0 This release

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.0.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page