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
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
sonolus_models-0.2.6.2.tar.gz
(15.3 kB
view details)
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 sonolus_models-0.2.6.2.tar.gz.
File metadata
- Download URL: sonolus_models-0.2.6.2.tar.gz
- Upload date:
- Size: 15.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
664f4de799bb8f91eabe312b3664d4d7ee48be73cec5db828ddc726fffc247a3
|
|
| MD5 |
d764aa3a3a0d3274e6fb9d5664c4c2e3
|
|
| BLAKE2b-256 |
e84c5416a7483646421cd6777ed56d03eac61651f51fdab13a282b94f7a4c5eb
|
File details
Details for the file sonolus_models-0.2.6.2-py3-none-any.whl.
File metadata
- Download URL: sonolus_models-0.2.6.2-py3-none-any.whl
- Upload date:
- Size: 30.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e8c14966c8bc7615925605b7abc11a9b43a960dca67bc71d6b97a792d20114d
|
|
| MD5 |
9f680fab2a09e709002f0e590f11c490
|
|
| BLAKE2b-256 |
7c30aecbaf99a6fca65a9b99a2b68b72473c73928a97937b92ad31cb765947af
|