-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKG-INFO
More file actions
83 lines (57 loc) · 2.11 KB
/
PKG-INFO
File metadata and controls
83 lines (57 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Metadata-Version: 2.1
Name: python-chordpro
Version: 0.0.2
Summary: A ChordPro parser, written in Python
Home-page: https://git.snyman.info/raoul/python-chordpro
Author: Raoul Snyman
Author-email: raoul@snyman.info
License: MIT
Keywords: music,chords,guitar
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Utilities
Requires-Python: >=3.7
Description-Content-Type: text/x-rst
License-File: LICENSE
python-chordpro
===============
``python-chordpro`` is a ChordPro parser, written in Python. The main difference between this module
and other similar libraries is that ``python-chordpro`` parses ChordPro files down to the syllable
level, enabling finer-grained control of the formatted output.
.. warning::
This package is still in development. Only a subset of ChordPro is currently supported, and
some key features are missing, like displaying song metadata.
Installation
------------
You can use ``pip`` to install ``python-chordpro``::
$ pip install python-chordpro
Example Usage
-------------
.. code-block:: python
from chordpro import Song
song = Song('path/to/song.chordpro')
for verse in song.verses:
print(verse.title)
Rendering
---------
``python-chordpro`` comes with two renders, HTML and Text.
.. code-block:: python
from chordpro.renderers.html import render
print(render(song))
Command Line Interface
----------------------
``python-chordpro`` also ships with a built-in command line interface which will read a ChordPro
file and then render it using either the text or HTML renderer.
For example::
$ python-chordpro path/to/song.chordpro -f text -o song.txt
License
-------
``python-chordpro`` is licensed under the MIT license. See the LICENSE file for more information.