Skip to main content

Distribute lilypond as a pypi 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. Support for macos (darwin) arm64 is only with an unstable version (2.25), but tests show that this version works correctly with macos >= 13

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.0.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

lilyponddist-1.0.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lilyponddist-1.0.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for lilyponddist-1.0.1.tar.gz
Algorithm Hash digest
SHA256 947048e6b61c07e7923c03ba70371055aafd6a10954ccca5f8b725ab366d42a6
MD5 de2cceb3b374d6d2dbf9cd0dec17e1e6
BLAKE2b-256 36a5ceb0493fd52ca9ab59e0ae604579ad186b00e1ed530bc988a8fcbfa77464

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lilyponddist-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2712f352f988e5923708fea23685884551d0591544fabbb441bb80cd6bda282d
MD5 b5f22ca8baaac9ca9154b4f193872a95
BLAKE2b-256 72e79762bd010f017c2a5b2795c9eaaf6a0842a3d7e0e6e7d414e3212aa31f42

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