Metadata-Version: 2.3
Name: py-milky-types
Version: 0.1.0
Summary: A collection of Pydantic types for Milky protocol.
License: The MIT License (MIT)
         =====================
         
         Copyright © `2026` `Mr.Lee`
         
         Permission is hereby granted, free of charge, to any person
         obtaining a copy of this software and associated documentation
         files (the “Software”), to deal in the Software without
         restriction, including without limitation the rights to use,
         copy, modify, merge, publish, distribute, sublicense, and/or sell
         copies of the Software, and to permit persons to whom the
         Software is furnished to do so, subject to the following
         conditions:
         
         The above copyright notice and this permission notice shall be
         included in all copies or substantial portions of the Software.
         
         THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
         EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
         OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
         HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
         WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
         FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
         OTHER DEALINGS IN THE SOFTWARE.
Requires-Dist: pydantic>=2.12.5
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# Py Milky Types

这是 Milky 协议的 Python 类型定义包，使用 Pydantic2 进行运行时类型验证。

# 快速上手

```shell
pip install py-milky-types
```

```python
from milky_types import *

data = GetLoginInfoOutput.model_validate(response_data)
```

# 目录结构

```text
milky_types/
├── api/                # API 输入输出定义
│   ├── input/          # API 请求参数模型
│   └── output/         # API 响应数据模型
├── message/            # 消息段与消息模型
│   ├── incoming/       # 入站消息定义
│   └── outgoing/       # 出站消息定义
├── event.py            # 事件类型定义
├── group.py            # 群组相关模型
└── user.py             # 用户相关模型
```

你可以按需导入所需要的模型