Welcome to python-ly’s documentation!
This package provides a Python library ly containing various Python modules to parse, manipulate or create documents in LilyPond format. A command line program ly is also provided that can be used to do various manipulations with LilyPond files.
The LilyPond format is a plain text input format that is used by the GNU music typesetter LilyPond (www.lilypond.org).
The python-ly package is Free Software, licensed under the GPL. This package is written by the Frescobaldi developers and is used extensively by the Frescobaldi project. The main author is Wilbert Berendsen.
Download from: https://pypi.python.org/project/python-ly
Development homepage: https://github.com/frescobaldi/python-ly
This documentation describes python-ly 0.9.9.
Contents:
- The
ly
command - The
ly-server
command - The
ly
package- Module contents
- Subpackages
- Submodules
- ly.slexer module
- ly.document module
- DocumentBase and Document
- Cursor
- Runner
- Source
Cursor
Document
DocumentBase
DocumentBase.apply_changes()
DocumentBase.block()
DocumentBase.blocks_backward()
DocumentBase.blocks_forward()
DocumentBase.check_changes()
DocumentBase.encoding
DocumentBase.filename
DocumentBase.index()
DocumentBase.initial_state()
DocumentBase.isblank()
DocumentBase.isvalid()
DocumentBase.next_block()
DocumentBase.plaintext()
DocumentBase.position()
DocumentBase.previous_block()
DocumentBase.setplaintext()
DocumentBase.size()
DocumentBase.state()
DocumentBase.state_end()
DocumentBase.text()
DocumentBase.tokens()
DocumentBase.tokens_with_position()
DocumentBase.update_cursors()
Runner
Source
- ly.docinfo module
DocInfo
DocInfo.complete()
DocInfo.count_tokens()
DocInfo.counted_tokens()
DocInfo.definitions()
DocInfo.document
DocInfo.find()
DocInfo.find_all()
DocInfo.global_staff_size()
DocInfo.has_output()
DocInfo.include_args()
DocInfo.language()
DocInfo.markup_definitions()
DocInfo.mode()
DocInfo.output_args()
DocInfo.range()
DocInfo.scheme_load_args()
DocInfo.token_hash()
DocInfo.version()
DocInfo.version_string()
- ly.barcheck module
- ly.colorize module
HtmlWriter
HtmlWriter.bgcolor
HtmlWriter.css_mapper
HtmlWriter.css_scheme
HtmlWriter.document_id
HtmlWriter.encoding
HtmlWriter.fgcolor
HtmlWriter.full_html
HtmlWriter.html()
HtmlWriter.inline_style
HtmlWriter.linenumbers_bgcolor
HtmlWriter.linenumbers_fgcolor
HtmlWriter.linenumbers_id
HtmlWriter.number_lines
HtmlWriter.set_wrapper_attribute()
HtmlWriter.set_wrapper_tag()
HtmlWriter.stylesheet_ref
HtmlWriter.title
HtmlWriter.wrapper_attribute
HtmlWriter.wrapper_tag
Mapper
add_line_numbers()
css_attr()
css_class
css_dict()
css_group()
css_item()
css_mapper()
css_style_attribute_formatter
default_mapping()
format_css_span_class()
format_html_document()
format_stylesheet()
get_tokens()
html()
html_escape()
html_escape_attr()
html_format_attrs()
map_tokens()
melt_mapped_tokens()
style
- ly.cursortools module
- ly.dom module
AddDuration
AddLyrics
Assignment
BlankLine
Block
BlockComment
Book
BookPart
ChoirStaff
Chord
ChordMode
ChordNames
Clef
Command
CommandEnclosed
Comment
Container
Context
ContextName
ContextProperty
ContextType
CueVoice
Devnull
Document
DrumMode
DrumStaff
DrumVoice
Duration
Dynamics
Enclosed
FigureMode
FiguredBass
FretBoards
Global
GrandStaff
GregorianTranscriptionStaff
GregorianTranscriptionVoice
HandleVars
Header
Identifier
Include
InnerChoirStaff
InnerStaffGroup
InputChords
InputDrums
InputFigures
InputLyrics
InputMode
InputNotes
KeySignature
Layout
Leaf
Line
LineComment
LyNode
LyricMode
Lyrics
LyricsTo
Mark
Markup
MarkupCommand
MarkupEnclosed
MensuralStaff
MensuralVoice
Midi
Named
Newline
NoteMode
NoteNames
Paper
Partial
PianoStaff
Pitch
Printer
QuotedString
Reference
Relative
RhythmicStaff
Scheme
SchemeLily
SchemeList
Score
ScoreContext
Section
Seq
Seqr
Sim
Simr
Staff
StaffGroup
Statement
StatementEnclosed
TabStaff
TabVoice
Tempo
Text
TextDur
TimeSignature
Transposition
UserContext
VaticanaStaff
VaticanaVoice
Version
Voice
VoiceSeparator
With
- ly.duration module
- ly.etreeutil module
- ly.indent module
- ly.node module
Node
Node.ancestors()
Node.append()
Node.backward()
Node.clear()
Node.copy()
Node.descendants()
Node.dump()
Node.extend()
Node.find()
Node.find_child()
Node.find_children()
Node.find_parent()
Node.forward()
Node.index()
Node.insert()
Node.insert_before()
Node.is_descendant_of()
Node.iter_depth()
Node.iter_rings()
Node.next_sibling()
Node.parent()
Node.previous_sibling()
Node.remove()
Node.replace()
Node.sort()
Node.toplevel()
Node.unlink()
WeakNode
- ly.reformat module
- ly.rhythm module
music_item
music_items()
music_tokens()
preceding_duration()
remove_dups()
rhythm_dot()
rhythm_double()
rhythm_explicit()
rhythm_extract()
rhythm_halve()
rhythm_implicit()
rhythm_implicit_per_line()
rhythm_overwrite()
rhythm_remove()
rhythm_remove_fraction_scaling()
rhythm_remove_scaling()
rhythm_undot()
- ly.util module
- ly.words module