Skip to main content

lilypond distribution as a python package

Project description

This package wraps the binary distribution of lilypond, allowing to install and use lilypond from python

Notice that this package installs lilypond from the releases provided by the lilypond team. It does not conflict with any user-installed lilypond version, since it places lilypond at an ad-hoc place, without modifying the PATH or any other part of the environment.

At the moment these platforms are supported: linux-x86_64, windows-x86_64, darwin-x86_64 and darwin-arm64.

The first time it is asked for the path of the lilypond binary, lilyponddist will download the given version (or the latest version if no version is specified) and the user can call that binary as if it was any regular installation of lilypond. Any subsequent call will use the already installed version.

lilyponddist follows the release process of lilypond closely and any new binary release is incorporated to the registry of downloads. Updating lilyponddist through pip will make these updates available via the update function.

Installation

pip install lilyponddist

Example

import lilyponddist
import subprocess

subprocess.call([lilyponddist.lilypondbin(), '/path/to/score.ly', '--pdf', '-o', '/path/to/output'])

Documentation

### lilypondbin(version='')

### update()

Update the current lilypond installation if possible

### can_update()

Checks if an update is available. This functions will return the latest version to update to, or None if there are no updates available

# The current version can be checked via lilypond_version. This returns the version of the # lilypond distribution installed via lilyponddist. There is never an attempt to interact with # a user installed lilypond lilyponddist.lilypond_version()

# All available versions can be queried via lilyponddist.avaialable_versions()

# Installed versions can be queried via lilyponddist.installed_versions()

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

lilyponddist-1.2.3.22581.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

lilyponddist-1.2.3.22581-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file lilyponddist-1.2.3.22581.tar.gz.

File metadata

  • Download URL: lilyponddist-1.2.3.22581.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for lilyponddist-1.2.3.22581.tar.gz
Algorithm Hash digest
SHA256 bbb58cf1b869b209668a8ea5b442b0dc636b5ff31df2ac1a42cacf741ea71104
MD5 b12c77d2e4b661aaeb1bc770a0b7f669
BLAKE2b-256 f2230dcaa255409d7079b6575f9f5cf2fff3c5768d10afd64c3467f2482b3ec0

See more details on using hashes here.

File details

Details for the file lilyponddist-1.2.3.22581-py3-none-any.whl.

File metadata

File hashes

Hashes for lilyponddist-1.2.3.22581-py3-none-any.whl
Algorithm Hash digest
SHA256 9f39bb350da47c012c038ae187ffa3a03c882f8f98c4ab72e19b1a2f5b4b0791
MD5 d14e692677f7f54f8bbac4661abbb221
BLAKE2b-256 12746a23eba076a896fc2b8d229d7633f2a217e050b3f9c4b8ec2ba39dd213b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page