Skip to main content

PythonMusic

PythonMusic is a Python-based software environment for learning and developing algorithmic art projects. It mirrors the JythonMusic API.

Full documentation, tutorials, and examples live at pythonmusic.org. This README covers only the essentials.

Installation

Requires Python 3.12+ and a C++ compiler (some dependencies build native code). On Linux, install portaudio first.

# Windows/macOS
pip install PythonMusic

# Linux (Debian/Ubuntu)
sudo apt-get install portaudio19-dev
pip install PythonMusic

If installation fails for lack of a compiler, install the Visual Studio Build Tools (Windows) or Xcode (macOS), then retry. See the site for full setup help.

The first time you import music, PythonMusic offers to download a default soundfont (FluidR3 GM) to a local cache for MIDI playback.

PEM editor

PythonMusic ships with PEM, a customized Python editor (a hard fork of IDLE). After installing, run:

pem <filename.py>

License

PythonMusic and PEM are free software under the GNU GPL v3 or later (see LICENSE). PythonMusic derives from JythonMusic, which is also GPLv3.

  • PEM's IDLE-derived components remain under the Python Software Foundation License v2 (LICENSE-PSF).
  • The bundled nevmuse metrics component is a separate work with its own terms (see src/PythonMusic/nevmuse/NOTICE.txt).

For full licensing details, see LICENSE and LICENSE-PSF.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythonmusic-1.1.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythonmusic-1.1-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file pythonmusic-1.1.tar.gz.

File metadata

  • Download URL: pythonmusic-1.1.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pythonmusic-1.1.tar.gz
Algorithm Hash digest
SHA256 cc32230fd409a1d8e8cf8e3dca38727f95c3c2afe81196add6770fcde7639af8
MD5 a7283e1659e73c1980af01f5816e8f7e
BLAKE2b-256 653937e3b06c279680125f3de6b9333eb5afcdf6658b25be1fc06e4845c7bb38

See more details on using hashes here.

Provenance

The following attestation bundles were made for pythonmusic-1.1.tar.gz:

Publisher: release.yml on CreativePython/PythonMusic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pythonmusic-1.1-py3-none-any.whl.

File metadata

  • Download URL: pythonmusic-1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pythonmusic-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4beb300911bb50d2f1f80d462c34e6af4e64122d081054a038b0b7c2ac88a5f6
MD5 c652ffb0d4ba4733f389925b1ec4239c
BLAKE2b-256 eabbc6e169bb934adf4801fe9ebf9de475cb69bac636422ec438e3762523400a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pythonmusic-1.1-py3-none-any.whl:

Publisher: release.yml on CreativePython/PythonMusic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.2

2 files

This release

1.1 This release

2 files

1.0

2 files

0.1

1 file

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