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.4.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.4.2.tar.gz.
File metadata
- Download URL: sonolus_models-0.2.4.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 |
4d6ff8aff2dc61105c8f8563751681c283af37eb59924cfa07825162f140157c
|
|
| MD5 |
c0184b548a76711d2a3fd3f109016af1
|
|
| BLAKE2b-256 |
06778839d08e90059ddd889592990bc686fde87b2fcf3c63c77a769616bc83df
|
File details
Details for the file sonolus_models-0.2.4.2-py3-none-any.whl.
File metadata
- Download URL: sonolus_models-0.2.4.2-py3-none-any.whl
- Upload date:
- Size: 30.0 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 |
9cf856acc605fe08d5399be8e90d7bde29537bc7186c96c734cf0f99682ac470
|
|
| MD5 |
5078bcc0c5177806ed07a4203a8cab55
|
|
| BLAKE2b-256 |
d31a2e25f5d9eb9ce3f6cb77ae476c110609b7a7290cdc2fb54be8c388354ebb
|