Python Library to access the myGEKKO Query API.
Project description
PyMyGekko
Python Library to access the myGEKKO Query API.
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
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.1.tar.gz
(67.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pymygekko-1.5.1-py3-none-any.whl
(38.8 kB
view details)
File details
Details for the file pymygekko-1.5.1.tar.gz.
File metadata
- Download URL: pymygekko-1.5.1.tar.gz
- Upload date:
- Size: 67.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffbf2bd63ca30425a19815b148d9760e7a8325845b5cac6f861e4c281db77b2e
|
|
| MD5 |
30fb7835423d797a96e74fc2445e373a
|
|
| BLAKE2b-256 |
84c1a53adc229d2e3ec38b72ee26ed4c1bf90ec121426a37f40715f7844c7e80
|
File details
Details for the file pymygekko-1.5.1-py3-none-any.whl.
File metadata
- Download URL: pymygekko-1.5.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc41d963dd09fb0141dc0ca6d1515f2b9c2692cf954f1ab83fdec3d042b53871
|
|
| MD5 |
557bf1e6b4c3db30b5838a2fd0b9f07e
|
|
| BLAKE2b-256 |
edcd4688b82ade62361f002d10f9956490c1778421d5548ef4461abaa1aafc46
|