Skip to main content

Tonuino Cards Manager

Test suites REUSE status The latest version of Tonuino Cards Manager can be found on PyPI. Information on what versions of Python Tonuino Cards Manager supports can be found on PyPI.

Welcome to the Tonuino Cards Manager, a convenient utility designed to streamline the process of managing and organizing music for Tonuino music boxes. This tool simplifies managing your Tonuino's SD card content and RFID cards settings.

Table of Contents

Overview

The Tonuino Cards Manager provides an easy way to prepare and manage music collections for your Tonuino music box. Whether you want to assign single songs or entire albums to specific RFID cards, this tool handles the setup seamlessly through a single YAML configuration file.

Features

  • Easy Configuration: Use a simple YAML file to define which music plays for each RFID card.
  • Multiple Sources: Assign songs or albums from various sources to one RFID card.
  • All modi: The tool supports all modern playing modi, e.g. single and party mode.
  • Automated Management: The tool automates the copying and organizing of music files into the appropriate structure for Tonuino.
  • QR Code Generation: QR codes will be generated for each card which allows you to quickly configure your cards, e.g. with TonUINO NFC Tools
  • User-Friendly: Intuitive and designed with simplicity in mind for managing kids' music collections.

Installation

To install the Tonuino Cards Manager, you need to have Python (at least version 3.10) installed. You can install the application using pip:

pip3 install tonuino-cards-manager

Usage

Once installed, you can use the tool by following these steps:

  1. Prepare your YAML configuration file (e.g. mybox.yaml), specifying the music for each RFID card.
  2. Run the tool with the following command:
    tonuino-cards-manager --config mybox.yaml --destination /path/to/tonuino-sd-card/
    
  3. The tool will process the YAML file and organize your music according to the specified configuration (see below).

Check out tonuino-cards-manager --help for all available options.

Demo

asciicast

The resulting QR code(s) can be scanned with TonUINO NFC Tools. There, you can press on "Enter list" and "Read QR code", and thereby program your RFID cards in batch.

Configuration

The core of the Tonuino Cards Manager is the configuration file where you define your music setup. Here's a basic example of what the configuration might look like:

# sourcebasedir: ""
# cardcookie: "1337B347"
# version: 2
# maxcardsperqrcode: 4
# filenametype: "mp3tags"

cards:
  # A whole directory in album mode
  1:
    source:
      - Rolf Zuckowski/1994 Im Kindergarten
    mode: album
  # A whole directory in party mode. A single source can also be written this way
  2:
    source: Fredrik Vahle/1990 Der Spatz
    mode: party
  # A whole directory, play one of the 10 first episodes randomly
  3:
    source: Audio Books/Benjamin Blümchen/
    mode: play-from-to
    from_song: 1
    to_song: 10
  # Multiple single songs and a whole directory in party mode
  4:
    description: Favourite songs of the last few weeks
    source:
      - Singles/Die alte Moorhexe.mp3
      - Singles/Große Uhren machen tick tack.mp3
      - Singles/Best of Last Vacation/
    mode: party

Configuration Details

  • sourcebasedir: If all your music is in one directory, you can add the path here and make the source entries for the cards relative to this directory. Default: ""
  • cardcookie: The card cookie of your Tonuino box. Background here. Default: 1337B347
  • version: Card format version, 2 for Tonuino 2.1.x and TNG. Default: 2
  • maxcardsperqrcode: Max number of card-configurations that are packed in one QR-Code. The more information is packed in one QR-Code, the bigger the QR-Code gets. If the QR-code is too big for your screen try a smaller number here. Default: 4
  • filenametype: Type of the file naming. Default: mp3tags
    • mp3tags: The filenames are bild with the information in the mp3tags: Tracknumber-Artist-Title.mp3
    • tracknumber: With this value, the files are just named: 001.mp3, 002.mp3 .... Useful for DF-player which don't work or get very slow with the long form of audio file names.
  • create_tableofcontents: The tool can create a PDF file with a table listing all cards and their contents. Default: true
    • true: create a table of content PDF. The output path will be next to the configuration file.
    • false: do not create such a file.
  • cards: A list of RFID cards.
    • id: The number of the card. These numbers must be unique and be actual numbers, not texts.
      • description: A free-text field to describe the card, useful for collections of single songs. Only relevant for your information when handling the QR code. Default: ""
      • source: A string or list of paths to songs or albums assigned to the card. Mandatory.
      • mode: The play mode for this card. Can be any of the following modes. Default: play-random
        • play-random: play a random file from the folder, front-back buttons locked
        • album: play the complete folder
        • party: play files in the folder in random order
        • single: play a specific file in the folder
        • audiobook: play a folder and save the progress
        • admin: create an admin card
        • play-from-to: play a random file between the start and end file (you need to set from_song and to_song)
        • album-from-to: play all files between the start and end file in consecutive order (you need to set from_song and to_song)
        • party-from-to: play all files between the start and end file at random (you need to set from_song and to_song)
      • from_song: If you set one of the *-from-to modes, write the number of the song you want to start from (from the list of sources you provided). Default: 0
      • to_song: Equivalent to from_song. Default: 0

Limitations

The tool currently has a few limitation. Please feel free to contribute to the project or share your ideas how to fix them.

  • A maximum of 99 cards will be supported as every configured card will create a separate folder. A typical Tonuino's MP3 player component can only support folders between 01-99.
  • Version 1 of the RFID cards format is not tested as I don't have such a box.

Contributing

Contributions are welcome! To contribute to the Tonuino Cards Manager, please check out the Contribution guide.

License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0-only). See the LICENSE file for details.

There may be components under different, but compatible licenses and from different copyright holders. The project is REUSE compliant which makes these portions transparent. You will find all used licenses in the LICENSES directory.


Happy listening with your Tonuino music box! If you have any questions or need further assistance, please open an issue on GitHub.

Metadata

Release files for tonuino-cards-manager 0.4.4

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

Source distribution (sdist)

Source distribution for tonuino-cards-manager 0.4.4
File Size Uploaded
tonuino_cards_manager-0.4.4.tar.gz 13.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tonuino-cards-manager 0.4.4
File Interpreter ABI Platform
tonuino_cards_manager-0.4.4-py3-none-any.whl Python 3 none any Details

Total release size: 29.9 kB

Release files / tonuino_cards_manager-0.4.4.tar.gz

Download URL tonuino_cards_manager-0.4.4.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
20e14181c46e1568bc29f296901236fb4ae5826a756ec3425cffc1367f47a68a
BLAKE2b-256 checksum
How to use checksums
88b1c0317307df9739d0e8b0bd91eaffe706c3f4d109a6281033c14f86092eb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 14, 2026.

Transparency log

Release files / tonuino_cards_manager-0.4.4-py3-none-any.whl

Download URL tonuino_cards_manager-0.4.4-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0eb28318db5d6f07b0d45bf900476ee36aac946f1cde0c0b3fe11791c0b70c4
BLAKE2b-256 checksum
How to use checksums
1ceb9d86d82625bf24b9ee4e14f2dc5c4f120113b0d7b486e05cc0727fa7c040
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.4 This release

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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