Skip to main content

Render Project Sekai score files (sus) to images (svg).

Project description

Project Sekai Scores

プロセカの譜面ファイル解析し、ベクトル画像(SVG)を生成する。

Installation

pip でインストール:

pip install pjsekai.scores

また、手動でビルドしてインストール:

python -m build
pip install dist/pjsekai.scores-*.whl

Usage

Project Sekai Scores には、デフォルトの起動スクリプトが含まれており、ローカルの SUS 譜面ファイルを読み込み、それを SVG ベクター画像に変換することができます。以下のコマンドを使って簡単に実行できます:

python -m pjsekai.scores <xxx.sus>

以下はパッケージとして使用して譜面画像を生成する例です:

import pjsekai.scores

score = pjsekai.scores.Score.open('1.sus', encoding='UTF-8')
drawing = pjsekai.scores.Drawing(score=score)
drawing.svg().saveas('1.svg')

譜面ファイルを個性化して豊かにするカスタマイズ機能を提供しています。下記の文書をご参照ください:

License

Project Sekai Scores は MIT ライセンスのもとで提供されています。詳細については、LICENSE ファイルをご覧ください。

Project Sekai Scores は SEGA・Colorful Palette・プロジェクトセカイとは一切関係がありません。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pjsekai.scores-0.1.10.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pjsekai.scores-0.1.10-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file pjsekai.scores-0.1.10.tar.gz.

File metadata

  • Download URL: pjsekai.scores-0.1.10.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for pjsekai.scores-0.1.10.tar.gz
Algorithm Hash digest
SHA256 13e83d31fde7314f4ee643cca1529d144eccc8ab508bbc24ee270ede80756834
MD5 1f5ecb7f121c901dd410706afb295b31
BLAKE2b-256 4dc227ec5cbf9fa976ee5f21be6b8a039972f9b02e57917b0c9999bd166b9e46

See more details on using hashes here.

File details

Details for the file pjsekai.scores-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for pjsekai.scores-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b47d3af0123badea77858cb3ec1ff3814d7468286f654eb8fb1a47954a0f7edf
MD5 2c2815289999e5d13cc5b3704ed4e17b
BLAKE2b-256 d2582694c09014c6278474837e978f8ea60389c91c7643e5db2dccfa5d603b6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page