Skip to main content
PyPI 版本 测试状态 文档
[中文版](README.md) | [英文版](README.en.md)

ChatShare

ChatShare 是 ChatArch 管理的文件分享 CLI。当前后端固定为 Dufs,提供可审计的二进制安装、配置、用户级服务生命周期,以及本机文件/目录导入、分享目录树查看与直达 URL 生成。

安全默认值

  • Dufs 固定安装到 ~/.chatarch/chatshare/runtimes/dufs/,不写系统目录。
  • 服务只绑定 127.0.0.1;公网入口应由独立反向代理任务配置。
  • 浏览、下载和内联查看默认匿名可访问;HTTP/WebDAV PUT 等写入操作需要 Dufs HTTP Auth,网页端使用 ChatShare 自定义登录弹窗发起鉴权。
  • 删除和符号链接访问默认关闭。
  • Linux 生命周期使用 systemd --user,不使用 kill、pkill 或不受控后台进程。

最短流程

uv tool install ChatShare
chatshare dufs install
chatenv init -t chatshare -I
chatenv set CHATSHARE_DUFS_BASE_URL=https://share.public.wzhecnu.cn -I
chatenv set CHATSHARE_DUFS_USERNAME=chatshare -I
read -rsp "Dufs writer password: " CHATSHARE_DUFS_PASSWORD && echo
printf 'CHATSHARE_DUFS_PASSWORD=%s\n' "$CHATSHARE_DUFS_PASSWORD" | chatenv paste --stdin -y -I
unset CHATSHARE_DUFS_PASSWORD
chatshare dufs init
chatshare dufs service install
chatshare dufs start
printf 'hello from ChatShare\n' > hello-share.txt
chatshare put ./hello-share.txt examples/hello-share.txt
chatshare tree examples
chatshare url examples/hello-share.txt

运行 chatshare --tree 可读取 ChatStyle 从 Click 注册表生成的完整实时命令树;chatshare tree <prefix> 查看已发布分享目录的实际文件树;chatshare --tree-brief 显示省略参数签名的同一命令面。隐藏兼容入口不会出现在产品树中。

文档

开发约定见 DEVELOP.md 与 AGENTS.md。

Metadata

Release files for ChatShare 0.2.4

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

Source distribution (sdist)

Source distribution for ChatShare 0.2.4
File Size Uploaded
chatshare-0.2.4.tar.gz 56.4 kB Details

Built distribution (wheel)

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

Total release size: 105.3 kB

Release files / chatshare-0.2.4.tar.gz

Download URL chatshare-0.2.4.tar.gz
Size 56.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c2a773958561dc8df5ec84e29e0ee6e76a4b086d9b2da4feadda6c381ab7baa6
BLAKE2b-256 checksum
How to use checksums
46c6d12647f5051fb08b09c1a696f6235c0042f65c5db4540da9510ae9d80791
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 30, 2026.

Transparency log

Release files / chatshare-0.2.4-py3-none-any.whl

Download URL chatshare-0.2.4-py3-none-any.whl
Size 48.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
089444c2ffd5961007e0c25d79cc05c6f439156d9d4a6b1e1e7e19889e42b959
BLAKE2b-256 checksum
How to use checksums
7a2d9d830940b4209790abcd2f4bf676adb1a4f9c01cf303a7d2a785b6b4ba87
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 30, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

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