Skip to main content

ChatDemo

Minimal ChatArch Python package release workflow demonstration.

文档入口:https://arch.gh.wzhecnu.cn/ChatDemo/

按场景选择文档:

场景 文档
第一次安装、运行命令行、确认包可用 CLI 树
校对当前包有哪些一等能力和边界 能力地图
从 Python 代码调用包能力 接口树

快速开始

pip install -e ".[dev]"
chatdemo --help
chatdemo --version
chatdemo --tree
chatdemo --tree-brief
python -m pytest -q
python -m build

命令行规范

这个模板默认依赖 chatstyle>=0.2.0,<0.3.0 和 chatenv>=0.2.11,<0.3.0,新增命令应优先使用:

  • add_tree_option() 提供共享的 --tree / --tree-brief,render_click_tree() 从已注册 Click 元数据生成命令树。
  • CommandSchema / CommandField 描述输入。
  • add_interactive_option() 提供统一 -i/-I。
  • resolve_command_inputs() 统一缺参补问、默认值、TTY 与校验。
  • 默认生成 config.py 和 chatenv.configs 入口点,使包可被 ChatEnv 发现;只有明确不需要 ChatEnv 接入时才使用 --without-chatenv-provider。

目录结构

  • 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 ChatDemo 0.0.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 ChatDemo 0.0.1
File Size Uploaded
chatdemo-0.0.1.tar.gz 4.9 kB Details

Built distribution (wheel)

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

Total release size: 9.8 kB

Release files / chatdemo-0.0.1.tar.gz

Download URL chatdemo-0.0.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
07c8275adabf30b02b49f2247be1045454dd7599f9dc8f63046aa0842a8f5e04
BLAKE2b-256 checksum
How to use checksums
356280060938837242f0d19a83d4e0168c52834d72c65add25bc137eee7c0d05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / chatdemo-0.0.1-py3-none-any.whl

Download URL chatdemo-0.0.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a097fa1752166df493233f72f6a8829d3d0cbf4f7c75080289399fd4a8a34292
BLAKE2b-256 checksum
How to use checksums
d09acbe5f3476928f3b1f6db056cae408a8a301290e03441dcb49e308a0a2d07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

0.0.3

2 release files

0.0.2

2 release files

This release

0.0.1 This release

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