Render Project Sekai score files (sus) to images (svg). Powered by pjsekai/scores.
Project description
Project Sekai Scores
プロセカの譜面ファイル解析し、ベクトル画像(SVG)を生成する。
Installation
pip でインストール:
pip install sekaiworld.scores
また、手動でビルドしてインストール:
uv sync --all-groups
uv run python -m build
uv pip install dist/sekaiworld.scores-*.whl
Usage
Project Sekai Scores には、デフォルトの起動スクリプトが含まれており、ローカルの SUS 譜面ファイルを読み込み、それを SVG ベクター画像に変換することができます。以下のコマンドを使って簡単に実行できます:
uv run python -m sekaiworld.scores <xxx.sus>
以下はパッケージとして使用して譜面画像を生成する例です:
import sekaiworld.scores
score = sekaiworld.scores.Score.open('1.sus', encoding='UTF-8')
drawing = sekaiworld.scores.Drawing(score=score)
drawing.svg().saveas('1.svg')
譜面ファイルを個性化して豊かにするカスタマイズ機能を提供しています。下記の文書をご参照ください:
License
Project Sekai Scores は MIT ライセンスのもとで提供されています。詳細については、LICENSE ファイルをご覧ください。
Project Sekai Scores は SEGA・Colorful Palette・プロジェクトセカイとは一切関係がありません。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sekaiworld_scores-0.1.11.tar.gz.
File metadata
- Download URL: sekaiworld_scores-0.1.11.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4b9043bcde31c6b57ead3b59f2262ed9d98db21f9f1c0cb142e0e499f66cd0a
|
|
| MD5 |
588607f57800494aef37b54b7f296519
|
|
| BLAKE2b-256 |
8fc7787ff5958976090be321bc0ba85cc3a4d57d6170f027482f1e72e44c93da
|
File details
Details for the file sekaiworld_scores-0.1.11-py3-none-any.whl.
File metadata
- Download URL: sekaiworld_scores-0.1.11-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49e67fc29c32ec2aeed45ee6170f6dc526361134bb720634647c18221b611709
|
|
| MD5 |
6755b0e8631db2ae246090ca58f77346
|
|
| BLAKE2b-256 |
5d24b90b3c354e5a9ed2efc9783f0e4f10cb7cdefec566e3c350b3ae57ca49b2
|