Chatqiniu
Chatqiniu 是 ChatArch 的七牛云命令行工具,覆盖 ChatEnv 鉴权、Kodo 对象存储、CDN、SSL 证书和 CDN 域名 HTTPS 配置。
- 文档站:https://arch.gh.wzhecnu.cn/Chatqiniu/
- 源码仓库:https://github.com/ChatArch/Chatqiniu
- 英文版:README.en.md
快速开始
pip install -e ".[dev,docs]"
chatqiniu --version
chatqiniu --tree
chatqiniu --tree-brief
chatqiniu auth whoami --profile wzh
chatqiniu bucket list --profile wzh
python -m pytest -q
当前能力
| 场景 | 命令入口 | 说明 |
|---|---|---|
| 鉴权与 profile | auth、profile、config |
通过 ChatEnv 读写七牛凭证和默认 bucket / CDN 域名配置。 |
| Kodo 对象存储 | bucket、object、url |
查看 bucket、列对象、上传/下载、生成公开或私有 URL。 |
| CDN 操作 | cdn |
刷新、预取和查询 CDN 任务。 |
| 证书与 HTTPS | cert、domain https |
列出/上传证书,或把证书绑定到 CDN 域名。高影响写操作默认 dry-run。 |
| 诊断与文档 | doctor、docs |
本地配置检查、只读 API 健康检查和官方链接索引。 |
证书部署
cert deploy 会把本地 PEM 证书上传到七牛,再把返回的证书 ID 绑定到一个或多个 CDN 域名。命令默认只预览;真实执行必须显式加 --execute --yes。
chatqiniu cert deploy \
--profile wzh \
--name chatdns-wzhecnu-default-20261028 \
--cert-chain ~/.chatarch/certs/wzhecnu.cn/default/fullchain.pem \
--private-key ~/.chatarch/certs/wzhecnu.cn/default/privkey.pem \
--domain qiniu.wzhecnu.cn \
--domain qiniu-cdn.wzhecnu.cn \
--force-https \
--execute --yes
安全约定:命令输出不会打印证书正文、私钥、AccessKey 或 SecretKey。
文档入口
chatqiniu --tree 由 ChatStyle 从真实 Click 注册表渲染并保留参数签名;chatqiniu --tree-brief 保留相同节点和用途说明,但省略参数签名。
- 命令树:https://arch.gh.wzhecnu.cn/Chatqiniu/cli-tree/
- 能力地图:https://arch.gh.wzhecnu.cn/Chatqiniu/capability-map/
- 证书部署流程:https://arch.gh.wzhecnu.cn/Chatqiniu/certificate-workflow/
开发验证
python -m pytest -q
mkdocs build --strict
python -m build
python -m twine check dist/*
chatqiniu --version
chatqiniu --tree
chatqiniu --tree-brief
git diff --check
Metadata
Release files for Chatqiniu 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chatqiniu-0.2.3.tar.gz | 17.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chatqiniu-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.1 kB
Release files / chatqiniu-0.2.3.tar.gz
| Download URL | chatqiniu-0.2.3.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15fbdf5df64dca8d53477c6c49ae7933ce71a611e3ee86ef1801a497db747669
|
|
BLAKE2b-256 checksum How to use checksums |
99697679ba83f6062f75f2c98188bcf7ac252388f01c9612c3b22e4f9c96334d
|
| 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 logRelease files / chatqiniu-0.2.3-py3-none-any.whl
| Download URL | chatqiniu-0.2.3-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17c72b6888fc20910dd9f637d73a433430fea01bf75e4a0388e3080a002a2a8c
|
|
BLAKE2b-256 checksum How to use checksums |
f3f291d2db7076431af5bf0b73e24eae5564372126e01252b0097c26c7b38057
|
| 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