Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
chord-chart
This package provides chord chart validation and transposition functionality.
It is written in Rust and has an accompanying library in JavaScript. Used in vrslev/songbook — lyrics and chords webapp.
Example
>>> from chord_chart import ValidationError, transpose_chart, validate_chart
>>> # that's a valid chart: | *chord-with-bass-note* *chord-without-accidental* | *chord* | *(end of the bar, then new bar ->)*
>>> # | *chord-with-accidental-and-symbols* |
>>> validate_chart('| A/E E | E | \n| C#m|')
'| A/E E | E |\n| C#m |'
>>> validate_chart('A/E E\nC#m') # and that's not a valid one: chords without stripes between lines of bars
Traceback (most recent call last):
...
_chord_chart.ValidationError: bar line should start with stripe: A/E E
>>> transpose_chart('| A/E| E |\n| C#m|', current_key='E', new_key='Db')
'| Gb/Db | Db |\n| Bbm |'
Installation
Just pip install chord-chart on Python 3.7 to 3.11.
Development
make installto clean up and setup dev-env.make testto build and test the package.make check-typesto run pyright.
Also make sure to install pre-commit hooks (pre-commit install from the repository root).
Metadata
Release files for chord-chart 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chord_chart-0.3.0.tar.gz | 6.9 kB | Details |
Built distributions (wheels)
Total release size: 5.1 MB
Release files / chord_chart-0.3.0.tar.gz
| Download URL | chord_chart-0.3.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb7c9d623a96ec2089473e9101d42febff1fcaa69ec9eaec27c4fd4d1e68c723
|
|
BLAKE2b-256 checksum How to use checksums |
deeb5380e35a0cd4529210a7c9b51cbba7c708c5087cff7422fee91f9565c04b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp311-none-win_amd64.whl
| Download URL | chord_chart-0.3.0-cp311-none-win_amd64.whl |
|---|---|
| Size | 103.8 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f440d8c2ee0be5e29e43ed5d58367ae113c7f64fd1c17ee56a75c27f8b4a622b
|
|
BLAKE2b-256 checksum How to use checksums |
388009d136f5d56b2bf6a3005bf34d3a9fdfcc11fb9319766544848d5f7e174d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | chord_chart-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 511.5 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
d4f72d8c050848405dfe9eb479889a74c682bef104cf9f31219daa4e4ebc924d
|
|
BLAKE2b-256 checksum How to use checksums |
5d9b49a59697fe6b3c4a2ba893decc5a063ab2d8552b3f29852b259053d88975
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | chord_chart-0.3.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 413.2 kB |
| Tags | CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
07ae68b38f0b1dbfe4a5a839ddca5cba5f872484b57a6512923ef6ecb8e81671
|
|
BLAKE2b-256 checksum How to use checksums |
fdbddb8a6a8d69a97cb1e4a8ae9a937035dd43f73596ab57958dc17b57a0baae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp310-none-win_amd64.whl
| Download URL | chord_chart-0.3.0-cp310-none-win_amd64.whl |
|---|---|
| Size | 103.8 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6f4e1556d31ebb8d27265b7c7901caa6baf9a58ed4add0f95e128f4b69fbc04b
|
|
BLAKE2b-256 checksum How to use checksums |
ec728abbb3d5062e9db7830374e477efc0d105c6bbe902abb0beb90e959b4c7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | chord_chart-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 511.5 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
928bc69bb2158d5bd3a6d709b23d10c765d67c91300f210cc26a83d5b0d9e643
|
|
BLAKE2b-256 checksum How to use checksums |
da6bc31ad699326e547deb4af1615792a9443e8d1c7ac23e05b8fbc56f4a370e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | chord_chart-0.3.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 413.2 kB |
| Tags | CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
bc8bbefa5c0fe791e68a36ae908a796e0eeda9c8e42a89acb1dc80bb3689954f
|
|
BLAKE2b-256 checksum How to use checksums |
a62aff0bfe961bb680c8ce0f04b89f684f0cace9ecc203fc51a61073c83f6573
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp39-none-win_amd64.whl
| Download URL | chord_chart-0.3.0-cp39-none-win_amd64.whl |
|---|---|
| Size | 103.8 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
176c641531130da5bc0a23d9ef0e210a2521cfcaa88ea448c7420ac7f1166235
|
|
BLAKE2b-256 checksum How to use checksums |
0d66aa3f20431da4d8a2206e32793154b4c5a14cd363fd1e444b3f1fd6449a70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | chord_chart-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 511.5 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
35fcf9871ca33460a582fc6ffdec7c784549f1d49336725a8062d26f087649be
|
|
BLAKE2b-256 checksum How to use checksums |
3ae420702e175a1fae97f2eb5828f913b273b2556763cfa0f8df03b4be3dd4e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | chord_chart-0.3.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 413.2 kB |
| Tags | CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ce35ec867808038e5d66199798141199915bb9b202a3fd2bbf1f92ab399da422
|
|
BLAKE2b-256 checksum How to use checksums |
793dff54b930c2a3b4964346b23f51d2b7631492ae889f149584c4b76381f8b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp38-none-win_amd64.whl
| Download URL | chord_chart-0.3.0-cp38-none-win_amd64.whl |
|---|---|
| Size | 103.8 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1b97f075b88b2b604116488d8cfea73bba21b2bf2ef65af774b0be6a959d00db
|
|
BLAKE2b-256 checksum How to use checksums |
ac2ae3a4a1a72c6d3b166bd5faca98dd6c03fd711ad82be3f192942b577559c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | chord_chart-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 511.4 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
be8971f60cc01f6e1b56547c647fa0c56119471f3f7ef78d9cc1bbb1866da733
|
|
BLAKE2b-256 checksum How to use checksums |
238c84f4d926b5ef9982f9bfc9dc055e1f142bb3c5ce50b3af79a303d27a6f08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | chord_chart-0.3.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 412.1 kB |
| Tags | CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7e16f6ecddfea50f5440c64a579c7c0e211e927a8c88b4487348ce96814b2830
|
|
BLAKE2b-256 checksum How to use checksums |
6f686f1b779b37e7b3b7b8432fbba6fa875f106fbd411faca8c44761c32bbebe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp37-none-win_amd64.whl
| Download URL | chord_chart-0.3.0-cp37-none-win_amd64.whl |
|---|---|
| Size | 103.7 kB |
| Tags | CPython 3.7 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d8781feabad255d2ed339f494140bcd6e48006a98e15f01db8381bf14084cd26
|
|
BLAKE2b-256 checksum How to use checksums |
43491187a1ecaa99283d487784c577930c2c2470198dcd23cf354a3f3c81af83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | chord_chart-0.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 511.4 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
8940cc862c2a4364b2321378600185ce0d2074c37233eb6c90738080337b1322
|
|
BLAKE2b-256 checksum How to use checksums |
cbbaa8b8e337103a2baeb22b90f6530d6df5bd6c85f530d06062c6599c65d623
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|
Release files / chord_chart-0.3.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | chord_chart-0.3.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 412.1 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
82fe098a99f8fce5d9736374d75b0a4adec301252d3a55763c01254a41f1e15a
|
|
BLAKE2b-256 checksum How to use checksums |
5a7bfb97e326a273007fbd15d8b92a7afbfb00193fcb9db20138579210726ab5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.1
|