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.1.tar.gz
(15.2 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.1.tar.gz.
File metadata
- Download URL: sonolus_models-0.2.4.1.tar.gz
- Upload date:
- Size: 15.2 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 |
d78f4d0f013f5ba19d7256066e4759e18ed0fd86ec7ccec7119ec98d5710e96f
|
|
| MD5 |
a8239828af1ada88527dab98f1b060c3
|
|
| BLAKE2b-256 |
aababa68d1c42fb902198b0ec87de8cce1fcd239d8cde8509b90d9326d233817
|
File details
Details for the file sonolus_models-0.2.4.1-py3-none-any.whl.
File metadata
- Download URL: sonolus_models-0.2.4.1-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 |
c1445696fcce49e9c9c980842eee1435ed677d48453333da0c546d1effd609bf
|
|
| MD5 |
6a8cd01dd7d627ee8e42c5ebabfa72ce
|
|
| BLAKE2b-256 |
e978cf2ac24bb75e79705e792c23025dc1bdaf7e6783423635a3b4ce2bcc4afe
|