| 1 |
Metadata-Version: 2.4 |
| 2 |
Name: python-ly |
| 3 |
Version: 0.9.9 |
| 4 |
Summary: Tool and library for manipulating LilyPond files |
| 5 |
Project-URL: Homepage, https://github.com/frescobaldi/python-ly |
| 6 |
Project-URL: Documentation, https://python-ly.readthedocs.io |
| 7 |
Project-URL: Repository, https://github.com/frescobaldi/python-ly |
| 8 |
Project-URL: Issue tracker, https://github.com/frescobaldi/python-ly/issues |
| 9 |
Maintainer-email: Wilbert Berendsen <[email protected]> |
| 10 |
License: GPL |
| 11 |
Classifier: Development Status :: 4 - Beta |
| 12 |
Classifier: License :: OSI Approved :: GNU General Public License (GPL) |
| 13 |
Classifier: Operating System :: MacOS :: MacOS X |
| 14 |
Classifier: Operating System :: Microsoft :: Windows |
| 15 |
Classifier: Operating System :: POSIX |
| 16 |
Classifier: Programming Language :: Python :: 3.8 |
| 17 |
Classifier: Programming Language :: Python :: 3.9 |
| 18 |
Classifier: Programming Language :: Python :: 3.10 |
| 19 |
Classifier: Programming Language :: Python :: 3.11 |
| 20 |
Classifier: Topic :: Multimedia :: Sound/Audio |
| 21 |
Classifier: Topic :: Text Editors |
| 22 |
Requires-Python: >=3.8 |
| 23 |
Description-Content-Type: text/x-rst |
| 24 |
|
| 25 |
==================== |
| 26 |
README for python-ly |
| 27 |
==================== |
| 28 |
|
| 29 |
|
| 30 |
This package provides a Python library `ly` containing various Python |
| 31 |
modules to parse, manipulate or create documents in LilyPond format. |
| 32 |
A command line program `ly` is also provided that can be used to do various |
| 33 |
manipulations with LilyPond files. |
| 34 |
|
| 35 |
The LilyPond format is a plain text input format that is used by the |
| 36 |
GNU music typesetter LilyPond (www.lilypond.org). |
| 37 |
|
| 38 |
The python-ly package is Free Software, licensed under the GPL. This package |
| 39 |
is written by the Frescobaldi developers and is used extensively by the |
| 40 |
Frescobaldi project. The main author is Wilbert Berendsen. |
| 41 |
|
| 42 |
| Download from: https://pypi.org/project/python-ly |
| 43 |
| Development homepage: https://github.com/frescobaldi/python-ly |
| 44 |
|
| 45 |
|
| 46 |
The `ly` command line tool |
| 47 |
-------------------------- |
| 48 |
|
| 49 |
With `ly` you can reformat, or re-indent LilyPond files, transpose music, |
| 50 |
translate pitch names, convert LilyPond to syntax-colored HTML, etc. |
| 51 |
|
| 52 |
There is also experimental support for converting LilyPond to MusicXML. |
| 53 |
|
| 54 |
Use:: |
| 55 |
|
| 56 |
ly -h |
| 57 |
|
| 58 |
to get a full list of the features of the `ly` command. |
| 59 |
|
| 60 |
Here is an example to re-indent and transpose a LilyPond file:: |
| 61 |
|
| 62 |
ly "indent; transpose c d" -o output.ly file.ly |
| 63 |
|
| 64 |
To test the `ly` module from the current directory without installing, use:: |
| 65 |
|
| 66 |
python -m ly <args...> |
| 67 |
|
| 68 |
This will behave like running the `ly` command when the package is installed. |
| 69 |
|
| 70 |
|
| 71 |
The `ly` Python module |
| 72 |
---------------------- |
| 73 |
|
| 74 |
The `ly` module requires Python 3. This is a short description |
| 75 |
of some modules: |
| 76 |
|
| 77 |
* ``ly.slexer``: generic tools to build parsers using regular expressions |
| 78 |
* ``ly.node``: a generic list-like node object to build tree structures with |
| 79 |
* ``ly.document``: a tokenized text document (LilyPond file) |
| 80 |
* ``ly.lex``: a parser for LilyPond, Scheme, and other formats, using `slexer` |
| 81 |
* ``ly.music``: a tree structure of the contents of a document |
| 82 |
* ``ly.pitch``: functions for translating, transposing etc |
| 83 |
* ``ly.indent``: indent LilyPond text |
| 84 |
* ``ly.reformat``: format LilyPond text |
| 85 |
* ``ly.dom``: (deprecated) tree structure to build LilyPond text from |
| 86 |
* ``ly.words``: words for highlighting and autocompletion |
| 87 |
* ``ly.data``: layout objects, properties, interfaces, font glyphs etc extracted |
| 88 |
from LilyPond |
| 89 |
|
| 90 |
Documentation |
| 91 |
------------- |
| 92 |
|
| 93 |
The documentation is built using Sphinx and located in the doc directory. |
| 94 |
If you have Sphinx installed, you can build nicely formatted HTML documentation |
| 95 |
by typing ``make html`` in the doc directory. |
| 96 |
|
| 97 |
You can also read the docs online at http://python-ly.readthedocs.org/. |
| 98 |
|