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.

Release files for PythonMusic 1.2.1

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

Source distribution (sdist)

Source distribution for PythonMusic 1.2.1
File Size Uploaded
pythonmusic-1.2.1.tar.gz 1.3 MB Details

Built distribution (wheel)

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

Total release size: 2.7 MB

Release files / pythonmusic-1.2.1.tar.gz

Download URL pythonmusic-1.2.1.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
c70793230acf97a96fee603731e5629c5b98fc30e0212de7f2d6549eac96ea1a
BLAKE2b-256 checksum
How to use checksums
1f0d7406f71f753ecc18b397e8b04b90b9fc62331368cb1cab782b49a9455b1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / pythonmusic-1.2.1-py3-none-any.whl

Download URL pythonmusic-1.2.1-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ea0d2287cda86b2ddafa919dce0a3a45e87cb5684f0e67ae3b6e827ef8b15c0e
BLAKE2b-256 checksum
How to use checksums
be7c87e0a8b25eb7ee1cc113e9d8a388ad46ef9a6c0f93b144b8d71587d42869
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

1.2.2

2 release files

This release

1.2.1 This release

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

0.1

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