Skip to main content

A collection of Pydantic types for Milky protocol.

Project description

Py Milky Types

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

快速上手

pip install py-milky-types
from milky_types import *

data = GetLoginInfoOutput.model_validate(response_data)

目录结构

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_milky_types-0.1.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_milky_types-0.1.1-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file py_milky_types-0.1.1.tar.gz.

File metadata

  • Download URL: py_milky_types-0.1.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for py_milky_types-0.1.1.tar.gz
Algorithm Hash digest
SHA256 246907eec0e09d3072b74747ad44e9798cfe3a81424cb532a6550df65ceef2e2
MD5 c8d6794040bcfdc868306de439550678
BLAKE2b-256 eed3ae97494eec3190ae60ecd4b5944a08db5425de5493f5305d79beaf11981f

See more details on using hashes here.

File details

Details for the file py_milky_types-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: py_milky_types-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for py_milky_types-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 199644f187bdb23b15e3278be46b62d8a1570ec068390f7e41914a768a4769c2
MD5 00de6bfa08bb74669a1cd9063dddf494
BLAKE2b-256 7c0d813760d8fa02130c50f6e1460b048975597010435b26028cd085973f36ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page