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")
c.sync_track.bpm_events[:7]
c.sync_track.time_signature_events[:8]
expert_guitar = c[Instrument.GUITAR][Difficulty.EXPERT]
expert_guitar.note_events[:10]
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.