tqdm_sound adds sounds to the well-known progress bar library TQDM.
It extends the TQDM base class, so anything you can do in TQDM you can do in this library.
It can self-mute during mouse or keyboard activity.
Motivation
I was renovating while running very long ML tasks, and I wanted a way of tracking how everything was going while I had paint on my hands.
This was inspired by the work of Ryoji Ikeda and includes sounds similar to data.matrix. You can create any set of WAV files for your project, but I picked this because it’s subtle and unobtrusive.
Use Cases
Screen-free progress tracking
Accessibility for developers using screen readers
You hate your co-workers
Installation
pip install tqdm_sound
Examples
Basic Example
from tqdm_sound import TqdmSound
import random
import time
# Example usage:
if __name__ == "__main__":
sound_monitor = TqdmSound(theme="ryoji_ikeda", activity_mute_seconds=1)
my_list = [0] * 50
progress_one = sound_monitor.progress_bar(my_list, desc="Processing", volume=100, background_volume=30, end_wait=1, ten_percent_ticks=True)
for _ in progress_one:
time.sleep(random.uniform(.2, .5))
Silence When Active
If you’re actively using your mouse/keyboard, you can silence the program via the activity_mute_seconds parameter. To mute for 5 seconds after mouse/keyboard activity:
sound_monitor = TqdmSound(theme="ryoji_ikeda", activity_mute_seconds=5)
my_list = [0] * 10
progress_one = sound_monitor.progress_bar(my_list, desc="Processing", volume=100, background_volume=30, end_wait=1, ten_percent_ticks=False)
for _ in progress_one:
time.sleep(random.uniform(.2, .5))
Play Final Sound
This is just a shortcut to play program_end_tone.wav:
sound_monitor.play_final_end_tone(50)
Play Any Sound in the Theme Directory
Play any WAV file in the sounds/your_theme directory:
sound_monitor.play_sound_file('short_beep.wav', 50)
Sound Files
Add your own collection of sound files by adding a directory to the sounds folder, which will correspond to the “theme” argument.
Interval Sounds
click_###.wav are played at every interval that is not the start, middle, or end. You can have any number of these files in this format to increase/decrease variation.
Major Sounds
start_tone.wav plays at the start of each loop.
mid_tone.wav plays at the midpoint of each loop.
end_tone.wav plays at the end of each loop.
semi_major.wav plays at every 10% step when ten_percent_ticks=True.
program_end_tone.wav is an optional sound that plays at the end of a given loop—this is just a convenience function you might use as the last loop in your program.
Metadata
Release files for tqdm-sound 1.3.2
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 | |
|---|---|---|---|---|
| tqdm_sound-1.3.2.tar.gz | 325.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tqdm_sound-1.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 651.2 kB
Release files / tqdm_sound-1.3.2.tar.gz
| Download URL | tqdm_sound-1.3.2.tar.gz |
|---|---|
| Size | 325.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65e55fac9816d23e59b88a96a663e2d49395902c5e5d080d8707000e6f415729
|
|
BLAKE2b-256 checksum How to use checksums |
27144156967621e570b6ef346fb5887d95ac228a74159db8e0c4dc7149ea6011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Jun 29, 2025.
Transparency logRelease files / tqdm_sound-1.3.2-py3-none-any.whl
| Download URL | tqdm_sound-1.3.2-py3-none-any.whl |
|---|---|
| Size | 325.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a28dc6a4befb5b9eeacd243b6ea14a390f13e9c9174026e3c38ff4700f20a37
|
|
BLAKE2b-256 checksum How to use checksums |
75d7ff38375d43e9b0689979a974c43a600c099d0ab13b803cc4a808b0c80b09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Jun 29, 2025.
Transparency logSecurity for tqdm-sound 1.3.2
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for tqdm_sound-1.3.2.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 Jun 29, 2025.
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.