Lento (current release: v301024) is a highly minimalist Python package (the entire API consists of a single class Part and a main processor function proc!) for compiling Lilypond sheet music.
For more information and examples please check the Documentation.
Some Coding Tips
Convert a collection of durations into a progressing beats collection by utilizing itertools.accumulate:
from random import choice
from itertools import accumulate
durs = [choice([.25, .5, .75, 1]) for _ in range(4)]
beats = list(accumulate(durs, initial=0))
print("Durations", durs)
print("Beats", beats)
# Durations: [0.25, 0.5, 0.5, 0.75]
# Beats: [0, 0.25, 0.75, 1.25, 2.0]
Contributing
If you wish to contribute your code to this repository, please consider the following points:
- Packaging
-
Ensure to update the
src/lento/version.pyfile and runpython prebuild.py(and push the changes!) before initiating the build-upload process for each release with:python -m build && twine upload dist/*
-
This README is generated by prebuild.py. Never edit it directly by hand! Instead, modify the readme variable in the
pre-build file.
Metadata
Release files for lento 301024
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lento-301024.tar.gz | 43.5 kB | Without provenance | Details for lento-301024.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lento-301024-py3-none-any.whl | Python 3 | none | any | Details for lento-301024-py3-none-any.whl |
Total release size: 88.9 kB
Release files / lento-301024.tar.gz
| Download URL | lento-301024.tar.gz |
|---|---|
| Size | 43.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0dc2f739d6b89a8d75595ef74f4c128fdd1dc2c7ff0a25c69864af5f7be765b1
|
|
BLAKE2b-256 checksum How to use checksums |
082ec83fe2201cdb4fb9a4d68ff40c4653915c9c3dafbad1ff5f3c49abbf0024
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / lento-301024-py3-none-any.whl
| Download URL | lento-301024-py3-none-any.whl |
|---|---|
| Size | 45.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebb7dfa956e8e98f019f206d104677b961c3b8c219b9bad9784fe6fb9bce1ead
|
|
BLAKE2b-256 checksum How to use checksums |
a1fb1f572c7e393914f890c655aa678549a364eaf9e124bac13918f1bd270d98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for lento 301024
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.