Skip to main content

ChatPost

ChatArch browser-level platform login foundation and draft entrypoint.

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

场景 文档
立即跑知乎/CSDN 登录与草稿路径 Quickstart:逻辑 Profile、知乎/CSDN 登录与草稿
查看当前真实命令 CLI 树
校对当前能力和边界 能力地图
Review Chrome/Profile 状态边界 配置、环境与状态

快速开始

pip install ChatPost
chatpost --version
chatup playwright install 1.61.1 --browser chromium --output json -I
chatbrowser profile create zhihu-test \
  --path "$HOME/.chatarch/chatpost/profiles/test/zhihu" \
  --backend chatup-playwright \
  --label owner=chatpost \
  --label platform=zhihu \
  --label logical_profile=test \
  --output json

本仓库开发环境:

pip install -e ".[dev]"
chatpost --help
chatpost --version
chatpost --tree
chatpost --tree-brief
chatpost platforms --help
chatpost profiles --help
chatpost zhihu --help
chatpost zhihu profiles --help
chatpost zhihu login --help
chatpost zhihu status --help
chatpost zhihu logout --help
chatpost zhihu draft --help
chatpost xhs --help
chatpost xhs profiles --help
chatpost xhs login --help
chatpost xhs status --help
chatpost xhs logout --help
chatpost csdn --help
chatpost csdn profiles --help
chatpost csdn login --help
chatpost csdn status --help
chatpost csdn logout --help
chatpost csdn draft --help
python -m pytest -q
python -m build

当前边界

chatpost zhihu/xhs/csdn login/status/logout PROFILE 是纯浏览器登录基础层:它只管理受控 Chromium Profile 和页面可见登录态,不调用发布适配器、不加载发布扩展、不要求发布 token、不读取或导出 Cookie/LocalStorage/IndexedDB/session/token。知乎未登录时可输出 page-owned login_url;小红书与 CSDN 未登录时只支持二维码图片 handoff:chatpost xhs login PROFILE --qrcode PATH / chatpost csdn login PROFILE --qrcode PATH 写出 mode 0600 的二维码 artifact,用户可见输出只包含 qrcode_path,不暴露 login_url、loginconfirm、raw data URL、base64 或二维码 token。chatpost zhihu draft PROFILE SOURCE 与 chatpost csdn draft PROFILE SOURCE 是独立 Wechatsync adapter 入口:dry-run 使用 Wechatsync CLI parser 做预览;create 通过 Wechatsync extension MCP 直连创建一个草稿,不最终公开发布。当前 Wechatsync CSDN adapter 返回 draftOnly=true,ChatPost 不提供 CSDN 公开 post/publish 命令。小红书草稿/发布尚未进入当前用户可见 CLI。

这个包依赖 chatstyle>=0.2.0,<0.3.0、chatenv>=0.2.10,<0.3.0、chatup>=0.2.12,<0.3.0、chatbrowser>=0.1.5,<0.2.0、qrcode[pil]>=7.4,<9.0、websocket-client>=1.8,<2.0 和 websockets>=12.0,<16.0。ChatStyle 从真实 Click 注册表生成 chatpost --tree(含签名)和 chatpost --tree-brief(不含签名)。Playwright package/browser 安装由 ChatUp 负责;浏览器 runtime/Profile/CDP metadata 边界由 ChatBrowser 承担;ChatPost runner 可用 browser_profile = "zhihu-test" / browser_profile = "csdn-test" 引用 ChatBrowser Profile,但 Wechatsync extension/bridge/receipt 仍属于 ChatPost adapter 层。

Metadata

Release files for ChatPost 0.1.3

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

Source distribution (sdist)

Source distribution for ChatPost 0.1.3
File Size Uploaded
chatpost-0.1.3.tar.gz 79.3 kB Details

Built distribution (wheel)

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

Total release size: 134.8 kB

Release files / chatpost-0.1.3.tar.gz

Download URL chatpost-0.1.3.tar.gz
Size 79.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b63a3c1836949ec739e29aa2c4d48576b3aaa7c84cd862f09da1631f6f89de3c
BLAKE2b-256 checksum
How to use checksums
d2e7b19a69c9cce18f9845146b0ec9a28f06bb85f9b68ec3f40e9608b903ec9d
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 / chatpost-0.1.3-py3-none-any.whl

Download URL chatpost-0.1.3-py3-none-any.whl
Size 55.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fa909daf55db4ae4da90f445634c3a2f3fb8688321250057690ec6bbb3b00d7
BLAKE2b-256 checksum
How to use checksums
8a2b241a45f5ce46e08da69b5bbda061fe20e3b776fc8ad68f012bdf5a211ef1
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.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.2

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