Loads of useful stuff for the things I do :)


License
MIT
Install
pip install wg-utilities==5.14.2

Documentation

WG Utilities

Code Style codecov GitHub pre-commit.ci status PyPI Ruff image CI Quality Gate Status

Documentation

Documentation generated by mkdocs can be found here.

Environment Variables

Name Description Default
HA_LOG_ENDPOINT The HomeAssistant host to send logs to homeassistant.local:8001
SUPPRESS_WG_UTILS_IGNORANCE If set to "1", will suppress warnings about ignored exceptions caught in the on_exception decorator null
WG_UTILITIES_CREDS_CACHE_DIR The directory to store the credentials cache in <App Data Dir>/WgUtilities/oauth_credentials/
WG_UTILITIES_HEADLESS_MODE If set to "1", allows a callback to be provided to OAuth clients instead of opening the auth link directly in the browser. Useful for running on headless devices. "-"
ITEM_WAREHOUSE_HOST The host to use for the Item Warehouse API http://homeassistant.local
ITEM_WAREHOUSE_PORT The port to use for the Item Warehouse API 8002
WAREHOUSE_HANDLER_BACKOFF_MAX_TRIES The maximum number of times to retry a request to the Item Warehouse API
WAREHOUSE_HANDLER_BACKOFF_TIMEOUT The maximum number of seconds to keep retrying requests to the Item Warehouse API 86400

Unit Test Coverage

Fancy coverage chart