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.2.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.2-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pythonmusic-1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 362d16fbb5aaf8808d7d0310b9108f66c91a9424f8378bd8151b52d778437a14
MD5 09ac3a4fc349b3aadfe741d79e3585e8
BLAKE2b-256 f3833c6b4218ab874485cd04eae4a7738830dd59b0409facc86981dc4ec2cefa

See more details on using hashes here.

Provenance

The following attestation bundles were made for pythonmusic-1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: pythonmusic-1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 68f6cbf6c0cac1a938cb0a057fe51838599941f878adc387a48ecae7de78fe2c
MD5 bdc78fbb6311281516f5dfdeba7d5393
BLAKE2b-256 2a207efcfc00c522f40264584b9397014d7efd3f5d7014ccc0535d97bfd80f50

See more details on using hashes here.

Provenance

The following attestation bundles were made for pythonmusic-1.2-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

This release

1.2 This release

2 files

1.1

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