Metadata-Version: 2.4
Name: sonolus-models
Version: 0.2.3
Summary: Define a Pydantic model for use within the Sonolus server and similar environments.
Project-URL: Homepage, https://github.com/yourusername/sonolus-models
Project-URL: Repository, https://github.com/yourusername/sonolus-models
Author-email: Your Name <your.email@example.com>
License: MIT
Keywords: models,pydantic,sonolus
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.12
Requires-Dist: pydantic>=2.12.5
Description-Content-Type: text/markdown

# Sonolus-Models

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

## インストール

```bash
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