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.2.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.2-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_milky_types-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0dc5133922438919a5fce1bfe1765213d86ee8b6c67720b3ed3b6a1b56056f8d
MD5 040659f7abb125bf72d26232a3db558a
BLAKE2b-256 f9fc8f1ade1694d925c2061d6f11ae93ef09faa1fe1858c5d359d2160707e4a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_milky_types-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3b8faf07e28a125583c467c9a818bf8bdac1ede029850acb4875adc63c3c42a
MD5 8db4ae27d38dd1ec3e00eba1ac8a2f88
BLAKE2b-256 9b7bccdc8592fc7b0b59b1360ed43c20305818397af1df14f33f7bdc48c89516

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