euphony-0.0.9
توضیحات
Play music while your code runs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | euphony-0.0.9 |
| نام | euphony |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Vinay Dinkar Kale |
| ایمیل نویسنده | vinaykale64@protonmail.com |
| آدرس صفحه اصلی | https://github.com/vinaykale64/euphony |
| آدرس اینترنتی | https://pypi.org/project/euphony/ |
| مجوز | MIT |
# 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.
``` python
from euphony.player import Player
mozart = Player(artist = 'mozart') # options: ['bach', 'beethoven']
with mozart:
for i in range(1000000000):
pass
# plays music while the code runs
```
That's all ~!
Note: Since it requires native audio output, you cannot use this when running code remotely like on AWS.
## Installation
Euphony is pip-installable. Just run following cmd in terminal:
``` bash
pip install euphony
```
## Documentation
[Link to Documentation](https://vinaykale64.github.io/euphony/build/html/includeme.html)
نیازمندی
| مقدار | نام |
|---|---|
| >=2.0.0 | pygame |
نحوه نصب
نصب پکیج whl euphony-0.0.9:
pip install euphony-0.0.9.whl
نصب پکیج tar.gz euphony-0.0.9:
pip install euphony-0.0.9.tar.gz