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.5.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.5.tar.gz.
File metadata
- Download URL: sonolus_models-0.2.5.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 |
934e003eb28bc685262e2fb255a0698bfe18ed27a59a553e6995e75cf18ca085
|
|
| MD5 |
0db853b55bf7bf86293c16276dd4c239
|
|
| BLAKE2b-256 |
6e86921e357cc7fd72fc5726caec8eecb6023b8b59329fa505950eb291bba3d0
|
File details
Details for the file sonolus_models-0.2.5-py3-none-any.whl.
File metadata
- Download URL: sonolus_models-0.2.5-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 |
6cf15b6dbf18057dd8f269864cb39a7bc94405dd8887298a381346a9d1d16eed
|
|
| MD5 |
2c1c4c4bebed13b83205931483f52437
|
|
| BLAKE2b-256 |
7f811519e7af73106ea16fc02636a725ae858b460d406356a7357daccf5ac4cb
|