Skip to main content

Render Project Sekai score files (sus) to images (svg). Powered by pjsekai/scores.

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

sekaiworld_scores-0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

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

sekaiworld.scores-0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file sekaiworld_scores-0.tar.gz.

File metadata

  • Download URL: sekaiworld_scores-0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for sekaiworld_scores-0.tar.gz
Algorithm Hash digest
SHA256 8349228375203ddef023d9430f5cc1b1a8520898e8293cdcbc56275ce223ece3
MD5 b8662f2859cbc654893ef65b0c77de17
BLAKE2b-256 1a58e5a9cbcd3b674f8fc081befd06b2038463078dfab62163f25e7604bc57f3

See more details on using hashes here.

File details

Details for the file sekaiworld.scores-0-py3-none-any.whl.

File metadata

  • Download URL: sekaiworld.scores-0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for sekaiworld.scores-0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b0f51f0076c8d7216b89385ebc4e9bb638286bc287cfa45fa674b78ac213412
MD5 87b4689d86a0d62db1acc0f824872b2f
BLAKE2b-256 a8ac6eadcb100753cbb706599b24e56ebd5626414e519400087b0752aa7aced8

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