Skip to main content

Play music while your code runs

Project description

euphony (Home)

|py27| |py36| |black| |pypi| |license|

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 artist randomly.

.. code:: 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:

.. code:: bash

 pip install euphony

Documentation

Link to documentation <https://vinaykale64.github.io/euphony/build/html/includeme.html>_

.. |py27| image:: https://img.shields.io/badge/python-2.7-brightgreen .. |py36| image:: https://img.shields.io/badge/python-3.6%2B-brightgreen .. |black| image:: https://img.shields.io/badge/black--white .. |pypi| image:: https://img.shields.io/badge/pypi-v0.0.8-blue .. |license| image:: https://img.shields.io/badge/license-MIT-white

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

euphony-0.0.8.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

euphony-0.0.8-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

File details

Details for the file euphony-0.0.8.tar.gz.

File metadata

  • Download URL: euphony-0.0.8.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.25.0 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.12

File hashes

Hashes for euphony-0.0.8.tar.gz
Algorithm Hash digest
SHA256 2ad1d425a3285406c254b8be635f30fafa50a5dcc7440c2800c28a59c24be4f7
MD5 9722fe48c5184adf5e77add705ddcb10
BLAKE2b-256 e8e68365f5831a3243c4219f1366320486f9fc1561e346ca7b058ae5d22fea1b

See more details on using hashes here.

File details

Details for the file euphony-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: euphony-0.0.8-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.25.0 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.12

File hashes

Hashes for euphony-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5d06da056b96891692827587bdfbb0476036d20fb66f4cc6d553f1c577e1f17d
MD5 89d45a72e5a8c290d24739b45b494573
BLAKE2b-256 0463bb3953ba48a10a51463f71ac736e6520be5af9e44efe0b000cc7f95a48b3

See more details on using hashes here.

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