chparse - Parse Clone Hero charts with ease!
Install the stable build via:
pip install chparse
Or install the latest development (unstable) build via:
git clone https://github.com/Kenny2github/chparse.git cd chparse python setup.py install
Assuming your .chart file is named "notes.chart"...
>>> import chparse
>>> with open('notes.chart') as chartfile:
... chart = chparse.load(chartfile)
>>> chart.instruments[chparse.EXPERT][chparse.GUITAR][0]
<Note: 0 = N 3 0 (<Flags.NONE: 0>)>