chartparse-0.3.1
توضیحات
A library for parsing Guitar Hero .chart files.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chartparse-0.3.1 |
| نام | chartparse |
| نسخه کتابخانه | 0.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | AWConant |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/AWConant/chartparse/ |
| آدرس اینترنتی | https://pypi.org/project/chartparse/ |
| مجوز | - |
---
# chartparse
[](https://codecov.io/gh/AWConant/chartparse)
[](https://github.com/AWConant/chartparse/actions/workflows/main.yml)
## Install it from PyPI
```bash
pip install chartparse
```
## Usage
```py
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](https://chartparse-gh.readthedocs.io/en/latest/) for more detailed
guidance.
Note: this software is tested only with .chart files that are written by
[Moonscraper](https://github.com/FireFox2000000/Moonscraper-Chart-Editor).
Files written by other editors or are handwritten may produce undefined
behavior.
## Development
Read the [CONTRIBUTING.md](CONTRIBUTING.md) file.
نیازمندی
| مقدار | نام |
|---|---|
| ==4.5.0 | sphinx |
| ==1.0.0 | sphinx-rtd-theme |
| ==3.1.1 | sphinx-toolbox |
| ==22.3.0 | black |
| ==2.1.12 | codecov |
| ==6.4.1 | coverage |
| ==4.0.1 | flake8 |
| ==0.3.0 | flake8-rst-docstrings |
| ==3.0.4 | gitchangelog |
| ==5.10.1 | isort |
| ==0.961 | mypy |
| ==7.1.2 | pytest |
| ==3.0.0 | pytest-cov |
| ==3.8.1 | pytest-mock |
نحوه نصب
نصب پکیج whl chartparse-0.3.1:
pip install chartparse-0.3.1.whl
نصب پکیج tar.gz chartparse-0.3.1:
pip install chartparse-0.3.1.tar.gz