Play music while your code runs
Project description
Euphony
Have you ever got bored of running long chunks of code?
It can get repetitive to monitor the progress of the code continuously.
Euphony can help you. It is a Python package that plays classical music in background while your code runs whether it be on terminal or script or jupyter notebook. Once your code is complete or if it errors out, it stops so you can go back to it.
How to use
Its pretty simple to use. Create a instance of the player
class and let your code run enclosed
in a with
statement with the object. You can choose between bach
, beethoven
or mozart
. If not specified, it chooses at random.
from euphony import player
mozart = player.player(artist = 'mozart') # options: ['bach', 'beethoven']
with mozart:
for i in range(1000000000):
pass
# plays music while the code runs
That's all ~!
Installation
Euphony is pip-installable. Just run following cmd in terminal:
pip install euphony
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file euphony-0.0.5.tar.gz
.
File metadata
- Download URL: euphony-0.0.5.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dc5967382d2ee779d72a5d8876ebe8b2aae8147b4a3eb1485cb926baeebbf63 |
|
MD5 | 1bea71d2c49415982c3afb905f0d4111 |
|
BLAKE2b-256 | 6886738f6b26faca64296d94b28e957188e355ea3765aaf032f7ff6979c18cd5 |
File details
Details for the file euphony-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: euphony-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cc8ed36c32070fbb61d75a16d47f1f7b745194e7545b080a5ead1a28e258377 |
|
MD5 | 28afb32779292f7bb24ef07443d96c8a |
|
BLAKE2b-256 | 8fabf3f5c054029b2e5e1c22db5535526c6207288a82a4e3590d002f61b398d3 |