Skip to main content

ChatServe

ChatServe 命令行包。

快速开始

pip install chatserve
chatserve --version
chatserve --tree
chatserve --tree-brief
chatserve hello ChatArch

开发检验:

pip install -e ".[dev,docs]"
python -m pytest -q
python -m build
mkdocs build --strict

CLI 树

ChatServe 使用 chatstyle.add_tree_option() 从真实注册的 Click 命令生成完整和简明视图:

chatserve
├── --help  # Show this message and exit.
├── --version  # Show the version and exit.
├── --tree  # Print the registered CLI tree and exit.
├── --tree-brief  # Print the registered CLI tree without parameter signatures and exit.
└── hello [NAME] [--interactive]  # Print a greeting; text output only, with no persistent side effects.

--tree-brief 保留相同节点和说明,但省略 hello 的参数签名。完整的两个视图见命令树文档。

CLI 规范

  • 公共根命令固定为 chatserve,并暴露 --version、--tree 和 --tree-brief。
  • Click 命令树由 chatstyle>=0.2.0,<0.3.0 的注册表渲染器生成,不维护包内树渲染器。
  • hello 使用 CommandSchema、add_interactive_option() 与 resolve_command_inputs();-I 可禁用缺参提示。
  • 问候语生成逻辑可通过 chatserve.operations.format_greeting() 直接复用。

目录结构

  • src/:包源码
  • tests/code-tests/:代码测试和历史测试迁移
  • tests/cli-tests/:真实 CLI 测试,doc-first
  • tests/mock-cli-tests/:mock/fake CLI 测试,doc-first
  • docs/:长期维护文档,由 mkdocs 构建

开发说明

扩展脚手架前,先阅读 DEVELOP.md 和 AGENTS.md。

Metadata

Release files for chatserve 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chatserve 0.1.1
File Size Uploaded
chatserve-0.1.1.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chatserve 0.1.1
File Interpreter ABI Platform
chatserve-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / chatserve-0.1.1.tar.gz

Download URL chatserve-0.1.1.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8d42d93c8a37b52f4c6c971fbfc9715b9a8dc3690cdb99d8b830737586611cb1
BLAKE2b-256 checksum
How to use checksums
fc46c9f9d460713c487c2b855101171aff212e9150f3f20998be7a4da9dc84c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.

Transparency log

Release files / chatserve-0.1.1-py3-none-any.whl

Download URL chatserve-0.1.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c31b5f11b337e87c7cf15fd93c3819f56d2b8b958ec8018d05ed80fc7c6a0b92
BLAKE2b-256 checksum
How to use checksums
5c45ba59402a93eb26c0c852a4396b9856246098c7697e73c84b21ad0cc8b26a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page