Skip to main content

Euphony

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 at random.

  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:

  pip install euphony

Documentation

Link to Documentation

Release files for euphony 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for euphony 0.0.9
File Size Uploaded
euphony-0.0.9.tar.gz 1.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for euphony 0.0.9
File Interpreter ABI Platform
euphony-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 3.1 MB

Release files / euphony-0.0.9.tar.gz

Download URL euphony-0.0.9.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
e99ba698f662d56a86a664fbffd1b785fc72d797a3b53f02150f7f9e7760e28b
BLAKE2b-256 checksum
How to use checksums
e2fa8d4cdd14853116081a7805b3a4317d3350bfa808a655e1a1ebd6d863253d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / euphony-0.0.9-py3-none-any.whl

Download URL euphony-0.0.9-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0f4a5f0427df64743daf802cff1aa10cb53b5ba630773a8c012d9b9eecefa071
BLAKE2b-256 checksum
How to use checksums
e4a79df60c7739ba94995131bf5b325d5205c859822ae5824444fa947c2c87c8
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page