🎵 pybeats-by-veera
Automatic sound feedback for every Python cell execution in Jupyter, Google Colab, and IPython.
What is pybeats-by-veera?
pybeats-by-veera hooks into IPython's event system so your notebook plays a sound automatically after every cell run — no wrapping, no decorators, no extra code.
- ✅ Success sound when a cell runs without errors
- ❌ Error sound when any exception occurs (including
SyntaxError,ZeroDivisionError, etc.)
Installation
pip install pybeats-by-veera
Quick Start
import pybeats
pybeats.enable()
# Now every cell plays a sound automatically:
10 + 5 # ✅ success sound
1 / 0 # ❌ error sound (ZeroDivisionError)
API Reference
| Function | Description |
|---|---|
pybeats.enable() |
Activate sound feedback |
pybeats.enable(quiet=True) |
Sounds only, no console labels |
pybeats.disable() |
Deactivate sound feedback |
pybeats.is_enabled() |
Returns True if active |
pybeats.status() |
Print current configuration |
@pybeats.sound |
Decorator for individual functions |
Decorator Usage
Works without enable() — wraps a single function:
@pybeats.sound
def fetch_data():
# plays success or error sound when this function is called
return requests.get("https://api.example.com/data").json()
Environment Support
| Environment | Status | Audio Method |
|---|---|---|
| Google Colab | ✅ Full support | IPython.display.Audio (browser autoplay) |
| Jupyter Notebook | ✅ Full support | IPython.display.Audio (browser autoplay) |
| JupyterLab | ✅ Full support | IPython.display.Audio (browser autoplay) |
| IPython terminal | ⚠️ Partial | System audio (afplay / aplay / winsound) |
| Plain Python | ❌ Not supported | Graceful warning, no crash |
Quiet Mode
Play sounds without the console labels:
pybeats.enable(quiet=True)
How It Works
pybeats-by-veera uses two IPython hooks:
post_run_cellevent — fires after every cell execution, provides success/error statusset_custom_exc— intercepts exceptions (includingSyntaxError) before IPython's default handler
Both hooks are registered once on enable() and removed cleanly on disable().
License
MIT — Veerakumar
Metadata
Release files for pybeats-by-veera 0.1.3
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 |
|---|---|---|---|---|
| pybeats_by_veera-0.1.3.tar.gz | 690.7 kB | Without provenance | Details for pybeats_by_veera-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pybeats_by_veera-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for pybeats_by_veera-0.1.3-py3-none-any.whl |
Total release size: 1.4 MB
Release files / pybeats_by_veera-0.1.3.tar.gz
| Download URL | pybeats_by_veera-0.1.3.tar.gz |
|---|---|
| Size | 690.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f82d52127cb4ce6e70a6c2f1c1cc24c1e6b029aed4871bdf8b22955e63bc3c75
|
|
BLAKE2b-256 checksum How to use checksums |
f3bc7a6e78bd2914b202fbbce039475aca1e09de2e946b4c60fb0d0b2c2f6ca8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / pybeats_by_veera-0.1.3-py3-none-any.whl
| Download URL | pybeats_by_veera-0.1.3-py3-none-any.whl |
|---|---|
| Size | 697.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
460e3e6648ef303af1e24fb4588c8c5b7deaef050dcef9792fac309cfc884e75
|
|
BLAKE2b-256 checksum How to use checksums |
35855901aec125b84af7e9345e875d8a46aa004def94f7599b7a305bc22943c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for pybeats-by-veera 0.1.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.