Skip to main content

busytag_tool

PyPI version License

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

  1. Bump version in pyproject.toml and merge it into main.
  2. 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.6

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

Source distribution (sdist)

Source distribution for busytag 0.1.6
File Size Uploaded Provenance Actions
busytag-0.1.6.tar.gz 14.2 kB With provenance Details for busytag-0.1.6.tar.gz

Built distribution (wheel)

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

Total release size: 26.3 kB

Release files / busytag-0.1.6.tar.gz

Download URL busytag-0.1.6.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
84416d309d9a6a6f73c7542c9b2868400d66fc0e0f14da73415b098730f9b93a
BLAKE2b-256 checksum
How to use checksums
ed916631b5bae011bde95ea4e5b1becc595f3aa30e4c64f8ea53a719345d46c2
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 18, 2026.

Transparency log

Release files / busytag-0.1.6-py3-none-any.whl

Download URL busytag-0.1.6-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
902483f7330c1f60105a812c8eb6f8aacea24d58c91efdcd4e9aae08122b8280
BLAKE2b-256 checksum
How to use checksums
20488fff2761eb98c9307b2d518c0b819f2f28488efd913ef298fd626d0cdb2f
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 18, 2026.

Transparency log

Security for busytag 0.1.6

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.

Select from 2 files

Attestation for busytag-0.1.6.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 18, 2026.

Transparency log

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.

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