Skip to main content

Busylight Core Implementation for Humans, presumably like you!

Project description

Release Version Release Date Python Version License Monthly Downloads

Busylight Core for Humans™

A unified Python library for controlling USB status lights (busylights) from multiple vendors

busylight-core provides a consistent interface to control various USB-connected status lights, commonly used for indicating availability, meeting status, or system notifications. Were you looking for a command-line interface to control your lights? Check out Busylight for Humans™!

Features

  • Multi-Vendor Support - Control devices from nine vendors.
  • Multiple Connection Types - HID and Serial device support.
  • Python Library - Clean, object-oriented API for easy integration.
  • Input Detection - Button press handling on interactive devices.
  • Multi-LED Support - Control devices with 1-192 individual LEDs.
  • Extensible Architecture - Easy to add support for new devices.

Supported Hardware

Vendor Device Models
Agile Innovative BlinkStick, BlinkStick Pro, BlinkStick Flex, BlickStick Nano, BlinkStick Strip, BlinkStick Square
CompuLab fit-statUSB
EPOS Busylight
Embrava Blynclight, Blynclight Mini, Blynclight Plus, BLYNCUSB10, BLYNCUSB20
Kuando Busylight Alpha, Busylight Omega
Luxafor Flag, Mute, Orb, Bluetooth
MuteMe MuteMe, MuteMe Mini, MuteSync
Plantronics Status Indicator
ThingM Blink(1)

Installation

Add to Your Project with uv

uv add busylight_core

Install with pip

python3 -m pip install busylight_core

Usage

Basic usage (any compatible device):

from busylight_core import Light

lights = Light.all_lights()

print(f"Found {len(lights)} light(s)")

for light in lights:
    light.on((255, 0, 0))  # Turn on red
    light.off()            # Turn off

Vendor-specific usage (recommended for production):

from busylight_core import EmbravaLights, LuxaforLights, KuandoLights

# Get all Embrava devices
embrava_lights = EmbravaLights.all_lights()
if embrava_lights:
    light = embrava_lights[0]
    light.on((255, 0, 0))  # Red

# Get all Luxafor devices
luxafor_lights = LuxaforLights.all_lights()
for light in luxafor_lights:
    light.on((0, 255, 0))  # Green

# Get first Kuando device
try:
    kuando_light = KuandoLights.first_light()
    kuando_light.on((0, 0, 255))  # Blue
except NoLightsFoundError:
    print("No Kuando devices found")

Common Use Cases

Meeting Status Indicator:

from busylight_core import Light

red = (255, 0, 0)
green = (0, 128, 0)
yellow = (255, 255, 0)

# Any device approach
light = Light.first_light()

# Available
light.on(green)

# In meeting  
light.on(red)

# Away
light.on(yellow)

light.off()

For detailed documentation including API reference, advanced usage examples, and device-specific information:

Development

This project and it's virtual environment is managed using uv and is configured to support automatic activation of virtual environments using direnv. Development activites such as linting and testing are automated via Poe The Poet, run poe after cloning this repo for a list of tasks.

Check out CONTRIBUTING.md for more development details.


gh:JnyJny/python-package-cookiecutter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

busylight_core-2.2.0.tar.gz (44.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

busylight_core-2.2.0-py3-none-any.whl (81.7 kB view details)

Uploaded Python 3

File details

Details for the file busylight_core-2.2.0.tar.gz.

File metadata

  • Download URL: busylight_core-2.2.0.tar.gz
  • Upload date:
  • Size: 44.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for busylight_core-2.2.0.tar.gz
Algorithm Hash digest
SHA256 142e5c1697c4690ec80d5df8606d56932aafe499a4c7e2716644226b1b1f6535
MD5 441cf9520c1063de7a90204bfb74ad6b
BLAKE2b-256 7a9722562291bfe305d85b3f0d9a130cfa3ac3d63d5d6596dd4763af60c3d6f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for busylight_core-2.2.0.tar.gz:

Publisher: release.yaml on JnyJny/busylight-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file busylight_core-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: busylight_core-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 81.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for busylight_core-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d099b1264276c57a2a05b3c367e74b80e03a3e0a5627d64ad71a01660b9c2d92
MD5 67e0d75e3dd8aa33df7619649c08c1b1
BLAKE2b-256 2476450d2a7f7903db393393393f2eb7878d33052db7dee7d49971b15049001f

See more details on using hashes here.

Provenance

The following attestation bundles were made for busylight_core-2.2.0-py3-none-any.whl:

Publisher: release.yaml on JnyJny/busylight-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page