busytag_tool
Python library and CLI to interact with Busy Tag devices using the USB CDC interface.
Installation
$ pip install busytag
CLI usage
If you have multiple devices connected to your machine, you should specify the port with the
--device flag. If only one device is connected, the tool will automatically use it.
$ busytag-tool
USAGE: busytag-tool [flags] <command> [<args>]
Available commands:
help: Prints this message
list_devices: Lists available devices
info: Displays device information
list_pictures: Lists pictures in device
list_files: Lists files in device
get_picture: Gets the filename of the picture being shown
set_picture <filename>: Sets the picture shown in the device
put <filename>: Uploads <filename>
get <filename>: Copies <filename> from the device to the working directory
rm <filename>: Deletes <filename>
set_led_solid_color <6 hex RGB colour>: Sets the LEDs colour
apply_led_preset <preset name>: Sets the LEDs colour according to a preset
get_brightness: Gets current display brightness
set_brightness <brightness>: Sets current display brightness (int between 1 and 100, inclusive)
$ busytag-tool set_picture coding.png
Config
A config file is created at ~/.busytag.toml. You can add "led preset" entries there,
which can then be used with the apply_led_preset to change the device's LED colours. For example, here are two
entries, one that applies the same colour to all LEDs, and another that alternates colours:
[[led_presets.red]]
pins = 127
color = 'FF0000'
[[led_presets.rb]]
pins = 85
color = 'FF0000'
[[led_presets.rb]]
pins = 42
color = '0000FF'
The BusyTag device has seven LEDs (with the first one, 0, at the bottom left of the device), identified in this tool by
powers of two. The pins entry in the config is the sum of which pins we want to apply the colour (so 127 applies
to all, while 85 applies to pins 0, 2, 4 and 6).
API usage
from busytag import Device, LedConfig, LedPin
bt = Device('/dev/fooBar')
bt.set_active_picture('coding.gif')
bt.set_led_solid_color(LedConfig(LedPin.ALL, 'FF0000'))
Releasing
- Bump
versioninpyproject.tomland merge it intomain. - Create a GitHub release whose tag matches that version (e.g.
v0.1.7).
Publishing the release triggers the Publish to PyPI workflow, which checks the tag against the package version, runs
the tests, builds the package and uploads it to PyPI using
trusted publishing.
Metadata
Release files for busytag 0.1.7
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 |
|---|---|---|---|---|
| busytag-0.1.7.tar.gz | 14.5 kB | With provenance | Details for busytag-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| busytag-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for busytag-0.1.7-py3-none-any.whl |
Total release size: 26.5 kB
Release files / busytag-0.1.7.tar.gz
| Download URL | busytag-0.1.7.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
318d3ca9e925046d5c6c36397efe446264182c3f1f9c0f45f81f6d6fe47e9d80
|
|
BLAKE2b-256 checksum How to use checksums |
10f95ee51ab5fb14144c9c01d0176c6523aedd80a5e3563c973450d0acb3da31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / busytag-0.1.7-py3-none-any.whl
| Download URL | busytag-0.1.7-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94efd22dededb17119cb8f02b58798ccc2659cb8717d572481ee55496ff8d3df
|
|
BLAKE2b-256 checksum How to use checksums |
8061e3f52b188a732642ed787b3ce1ee70525a036dd5693e3d12928532dd3d22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for busytag 0.1.7
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for busytag-0.1.7.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA 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.