ChordPro
A Python tool that converts ChordPro files to PDF music sheets with ukulele chord diagrams.
Features
- Parses standard ChordPro format (
.cho,.chordpro) - Renders PDF with lyrics, inline chord names, and 4-string ukulele chord diagrams
- Supports verses, choruses, tabs, and chorus recall
- Custom chord definitions with fret and finger positions (GCEA tuning)
- Metadata directives: title, subtitle, artist, key, tempo, time, capo
- Letter and A4 page sizes
Installation
pip install chordpro-pdf
Requires Python 3.8+.
Usage
chordpro input.cho -o output.pdf
Options
| Flag | Description |
|---|---|
-o, --output |
Output PDF path (defaults to input.pdf) |
--page-size |
a4 (default) or letter |
ChordPro Format
{title: Amazing Grace}
{key: G}
{define: G base-fret 1 frets 0 2 3 2 fingers 0 1 3 2}
{define: C base-fret 1 frets 0 0 0 3 fingers 0 0 0 3}
{start_of_chorus: Chorus}
A[G]mazing [C]grace, how [G]sweet the sound
{end_of_chorus}
Chords are placed inline using [ChordName] notation. See sample.cho for a complete example.
License
MIT
Release files for chordpro-pdf 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chordpro_pdf-0.1.2.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chordpro_pdf-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.2 kB
Release files / chordpro_pdf-0.1.2.tar.gz
| Download URL | chordpro_pdf-0.1.2.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2238e0679804c80682fce820ae5b1f8aa10b26d99f1bdf2134bc6ec8f5c9040a
|
|
BLAKE2b-256 checksum How to use checksums |
c449a55773e23aa3d48b68a3392c8edfcafc99c801dcd38353fc77e9a066888b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / chordpro_pdf-0.1.2-py3-none-any.whl
| Download URL | chordpro_pdf-0.1.2-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f5946fd4b1f0946181515c376e75efd1bfc70e64893fc81198347067dec7da2
|
|
BLAKE2b-256 checksum How to use checksums |
d3f564e29452f79db2ef4c58e07251bc1be70b4f4a968d949a6b517760840d7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|