Skip to main content

Python package to play a sound when a task completes.

Project description

Pypi project Pypi total project downloads

Python package for playing a sound when a task is complete. The callbacks additionally works also within jupyter notebook, so that if you are working on a notebook on a remote machine it plays the audio within your browser and not in the server.

How do I install this package?

You will need a couple packages that you might not already have installed:

sudo apt install python3-dev
sudo apt install libasound2-dev

Finally as usual, just download it using pip:

pip install ringbell

Usage examples

It’s quite trivia, really, just go:

from ringbell import RingBell

def my_long_task():
    # Do stuf...

    # And when it is finished...
    RingBell()

What abount a custom sound? Just pass it as an argument.

from ringbell import RingBell

def my_long_task():
    # Do stuf...

    # And when it is finished...
    RingBell(path="my_custom_sound.mp3")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ringbell-1.0.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page