Registry / devops / integrationhelper

integrationhelper

JSON →
library0.2.2pypypi✓ verified 80d ago

A lightweight set of helper utilities for Python integrations, commonly used in Home Assistant custom components. Current version is 0.2.2. Low release cadence.

pip install integrationhelper
INSTALL
IMPORT
SIG · INTEGRATIONHELPER
I
integrationhelper
devopspythonv0.2.2
Install
3.9s avg
Import
Disk
27MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 27.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.9s · import 0.000s · 29MB
27MB installed
● package 27MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Logger
from integrationhelper import Logger
from integrationhelper import IntegrationLogger

Basic usage of IntegrationLogger and Throttle decorator.

from integrationhelper import IntegrationLogger, Throttle import logging logger = IntegrationLogger(__name__) logger.info("Integration helper works!") @Throttle(min_time=10) def my_throttled_function(): return "Called once per 10 seconds" print(my_throttled_function())
Debug
Known issues
gotchaThrottle uses wall-clock time, not async; may block event loop if used in async context.
fix
Use async-compatible throttling or run in executor.
affects: all
gotchaIntegrationLogger is a simple wrapper around Python logging; does not support advanced formatting like Home Assistant's custom component logger.
fix
For advanced logging, consider using Home Assistant's homeassistant.helpers.logging or structlog.
affects: all
Upgrade
Version history
0.2.2latest on PyPI · released Jul 23, 2019
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
integrationhelper — pip install integrationhelper · libregistry