chartparse
Install it from PyPI
pip install chartparse
Usage
from chartparse.chart import Chart
from chartparse.instrument import Instrument, Difficulty
c = Chart.from_filepath("/path/to/file.chart")
# the first 7 BPM changes (including the initial one)
c.sync_track.bpm_events[:7]
# the first 8 time signature changes (including the initial one)
c.sync_track.time_signature_events[:8]
expert_guitar = c[Instrument.GUITAR][Difficulty.EXPERT]
# the first 10 notes of the expert guitar chart
expert_guitar.note_events[:10]
# the first 3 star power phrases of the expert guitar chart
expert_guitar.star_power_events[:3]
See the documentation for more detailed guidance.
Note: this software is tested only with .chart files that are written by Moonscraper. Files written by other editors or are handwritten may produce undefined behavior.
Development
Read the CONTRIBUTING.md file.
Metadata
Release files for chartparse 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chartparse-0.3.1.tar.gz | 31.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chartparse-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 72.6 kB
Release files / chartparse-0.3.1.tar.gz
| Download URL | chartparse-0.3.1.tar.gz |
|---|---|
| Size | 31.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a57932961aee1472af1c0fbb2dea8b59c5f9657f603108cefadbfa01f3dddca
|
|
BLAKE2b-256 checksum How to use checksums |
0093c5825f20cf8c14c874ea169d15988358110c0313584d545f6eb9d2af2236
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / chartparse-0.3.1-py3-none-any.whl
| Download URL | chartparse-0.3.1-py3-none-any.whl |
|---|---|
| Size | 41.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c41490ab030ad279d964019de92e78c8e5d1f07f15fb0e5c6807282a119bcdb
|
|
BLAKE2b-256 checksum How to use checksums |
84573868e393bb703169480ee18046ce55955f8e3d00c7978a8f868a3f9cef6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|