pystatusb
Control a fit-statUSB from python
The statUSB is a tiny, USB LED that can be set display various colors and sequences. This library allows easy control of it from python.
Use one of the simple helpers to set a color or sequence. After sending the configuration, the device will keep it without the python program running, and persist until a different color command is sent or the device is unplugged.
from pystatusb import StatUSB, Colors
led = StatUSB() # Auto-detect the device
led.set_transition_time(200) # Set the fade time to 200ms between each color
led.set_color_rgb(0xff0000) # 100% bright red
led.set_color(Colors.VIOLET, 20) # 20% bright violet
led.set_sequence("#0000FF-0500#00FFFF-0250#000000-0250") # Blue for 0.5 sec, cyan for 0.25 sec, off for 0.25 sec
Metadata
Release files for pystatusb 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pystatusb-1.2.0.tar.gz | 5.3 kB | Without provenance | Details for pystatusb-1.2.0.tar.gz |
Release files / pystatusb-1.2.0.tar.gz
| Download URL | pystatusb-1.2.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2682a482a64b6ab4984fa6d9aa1aff3914c35dc407ee1fefcf19961a08ebfd3f
|
|
BLAKE2b-256 checksum How to use checksums |
f4780744edf5717d6dfb2292b8e1c4aedfa9811af5a7c001adcd6a971ca29f93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for pystatusb 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.