Skip to main content

Play music while your code runs

Project description

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 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


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.7.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: euphony-0.0.7.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

Hashes for euphony-0.0.7.tar.gz
Algorithm Hash digest
SHA256 5de40f27a1f4ad3bccdc1a884ba53618a49abad0554aedc20ae836949672576d
MD5 ad52547ccfa3438eb7b964f074157386
BLAKE2b-256 1d7954096ee0cd0ff1d1ecd30bb3dcce0944ccbbde7a9ef6465c454c2e30762a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: euphony-0.0.7-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

Hashes for euphony-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 150ef12558f84c964f8f35aeb8333d88d943304458ab34ccc0d379ce9fcc8476
MD5 2a826f1a2fef6f1071c24d6a7499bd5f
BLAKE2b-256 429bb91c4f04a5000ea4dcd2819779b1afd0a6603b346d21bbc95f0206fb5463

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