Skip to main content

Python Luxafor

warning This library has only been tested on the Luxafor Flag. It may or may not work on other devices.

pyluxa4 is a Python library for controlling Luxafor devices. You can set colors, blink them, fade them, apply a wave effect, and even run its built-in patterns. All of this is done by running a small server that is accessed locally on port 5000 (the port can be changed). Once running, you can issue commands from the CLI tool, which in turns communicates with the server using a REST API.

Since the server uses a REST API, you could easily write scripts in other languages to control the device once running.

If desired, you can import the pyluxa4.usb library in a script and control the device directly without running a server. Or you could import pyluxa4.client and write your own application that uses the REST API to control the device through the server.

pyluxa4 requires libusb/hidapi to be installed in order for the controller portion of the library to be functional.

Documentation

Documentation is found here: https://facelessuser.github.io/pyluxa4/

License

MIT License

Release files for pyluxa4 1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyluxa4 1.7
File Size Uploaded
pyluxa4-1.7.tar.gz 39.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyluxa4 1.7
File Interpreter ABI Platform
pyluxa4-1.7-py3-none-any.whl Python 3 none any Details

Total release size: 62.5 kB

Release files / pyluxa4-1.7.tar.gz

Download URL pyluxa4-1.7.tar.gz
Size 39.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f7c3895c9966d6072e0a244f7e1ce20a01c46814f47cdb86fc29ce4e2537dcb2
BLAKE2b-256 checksum
How to use checksums
2460e3fb34e16a059c909cbc7cb19f1dabee6149c12e9027e5acff21ab678e0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / pyluxa4-1.7-py3-none-any.whl

Download URL pyluxa4-1.7-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb7dfb31f8b728c4195927347f4bda2bddeeaa03d7dc668c8219dc594573c73b
BLAKE2b-256 checksum
How to use checksums
359ea6778d7a6ac20438171a8cf9da1dc997afcd0571d9ed3a64a159d437cb35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

1.7 This release

2 release files

1.6

1 release file

1.5.1

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page