Install & Compatibility
Where this runs
tested against v0.2.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.558s · 33.1MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 5.3s · import 0.510s · 36MB
33MB installed
● package 33MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Govee
✓ from govee_api_laggat import Govee
✗ import govee_controller; from govee.api import Govee
Underscore in package name replaces hyphens; common mistake to use dot or underscore in wrong place.
Initialize Govee API with an API key from environment variable, then list devices and control first one.
import os
from govee_api_laggat import Govee
api_key = os.environ.get('GOVEE_API_KEY', '')
govee = Govee(api_key)
devices = govee.get_devices()
if devices:
device = devices[0]
govee.turn_on(device)
govee.set_brightness(device, 50)
govee.set_color(device, 255, 0, 0) # Red
Errors
Common errors & fixes
ImportError: No module named 'govee_api_laggat'
Installing `govee-api-laggat` but trying to import with hyphens or wrong underscore pattern.
fixUse `pip install govee-api-laggat` and then `from govee_api_laggat import Govee`.
requests.exceptions.HTTPError: 400 Client Error: Bad Request
Invalid API key or missing required device parameters (device_name, device_mac).
fixVerify your API key from the Govee app and ensure you pass both `device_name` and `device_mac` from `get_devices()` to control methods.
Upgrade
Version history
0.2.2latest on PyPI · released Apr 5, 2022
Audit
Dependencies
requestsrequiredHTTP requests for API calls