Skip to main content

chartparse

codecov CI

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)

Source distribution for chartparse 0.3.1
File Size Uploaded
chartparse-0.3.1.tar.gz 31.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chartparse 0.3.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page