Skip to main content

Define a Pydantic model for use within the Sonolus server and similar environments.

Project description

Sonolus-Models

Pythonで実装されたSonolusサーバーのPydanticモデルライブラリ。 sonolus-core (TypeScript)の型定義から移行された完全な型安全性を提供します。

インストール

pip install sonolus-models

主な機能

完全な型定義

  • 共通型: Tag, Srl, Sil, AutoExit, GameplayResult
  • アイテム型: LevelItem, SkinItem, BackgroundItem, EffectItem, ParticleItem, EngineItem, PostItem, PlaylistItem, ReplayItem, RoomItem, UserItem
  • サーバー型: ServerInfo, ServerInfoButton (3種類のUnion型)
  • オプション型: 9種類のServerOption (text, textArea, slider, toggle, select, multi, serverItem, serverItems, collectionItem, file)

TypeScript互換

sonolus-core (TypeScript) の型定義から移行されているため、TypeScriptとの完全な互換性があります。

Pydantic v2対応

最新のPydantic v2を使用した高速なバリデーション。

ライセンス

MIT

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

sonolus_models-0.2.6.7.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

sonolus_models-0.2.6.7-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file sonolus_models-0.2.6.7.tar.gz.

File metadata

  • Download URL: sonolus_models-0.2.6.7.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.2","id":"zara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sonolus_models-0.2.6.7.tar.gz
Algorithm Hash digest
SHA256 e20d08fb3179c60cbc35c2c019be30672a8353e6784c5eec4a86bb9f75182db1
MD5 05fda652723d1bd93e647ca361cad4b1
BLAKE2b-256 bbf64add84731afe62e1e9c7f77393c47c48c882f378e66671c6efc5fe965b3a

See more details on using hashes here.

File details

Details for the file sonolus_models-0.2.6.7-py3-none-any.whl.

File metadata

  • Download URL: sonolus_models-0.2.6.7-py3-none-any.whl
  • Upload date:
  • Size: 31.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.2","id":"zara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sonolus_models-0.2.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a9008d2575d04cb8048a6ef86aedf801d347082b1447467a51d86c36a0159593
MD5 0d8548e18405bbdf7eceeea2b04f72c3
BLAKE2b-256 39c3e1645c447850524b60cf4d7c381891b09356adf10c0293ec176f2d0dd51b

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