Skip to main content

qshare

无需登录账号,一行命令即可把本地文件临时分享至公网。文件由本机 HTTP 服务提供,并通过临时 TryCloudflare 隧道传输,不会上传到 qshare 服务器留存。

特点

  • 无需注册或登录账号
  • 一行命令快速分享本地文件
  • 文件不在 qshare 服务器保存
  • 默认有效期 2 小时,可通过 --ttl 调整
  • 结果链接醒目显示,并提供终端二维码
  • 支持 Linux、Windows 和 macOS
  • PyPI 平台 wheel 内置对应的官方 cloudflared 二进制
  • 运行时不从 GitHub 下载二进制,适合网络受限环境

启动后会提示:私密文件请先加密,再进行中转分享。公网链接本身没有访问控制,请勿直接分享未加密的敏感文件。

安装

python -m pip install -U qshare

pip 会根据操作系统和架构选择对应 wheel,每个 wheel 只包含自身平台的二进制。

如果不信任 PyPI wheel 中的二进制,可以从 Cloudflare 官方发布页下载匹配版本,按官方校验和验证后放入 PATH:

https://github.com/cloudflare/cloudflared/releases

qshare 会优先使用 PATH 中已有的 cloudflared。没有匹配平台 wheel 时,也可以手动安装 cloudflared 后使用。

使用

qshare /path/to/file.zip
qshare /path/to/file.zip --ttl 2h
qshare /path/to/file.zip --ttl 900
qshare /path/to/file.zip --port 8000
qshare /path/to/file.zip --cnb

成功后会显示醒目的公网文件链接及二维码。程序只接受真实的 *.trycloudflare.com 分享域名,会拒绝 api.trycloudflare.com 并自动重试。Unix-like 系统可在提示处输入 d 后台运行;Windows 始终前台运行。前台运行达到 TTL 后会提示并停止分享。

使用 --cnb 会将文件上传到 CNB Release 并返回下载地址;文件会存储在 CNB,请先加密私密文件。上传过程中会显示进度。

DNS 排查

如果打开链接时提示找不到 IP,通常是本地 DNS 解析或网络限制。可以尝试使用 Cloudflare DNS 1.1.1.1、1.0.0.1,或 Google DNS 8.8.8.8、8.8.4.4,然后刷新本地 DNS 缓存并重试。1.1.1.1 可能改善解析,但无法解决隧道过期或网络屏蔽 Cloudflare 的问题。

开发与发布

uv venv
source .venv/bin/activate
uv pip install -e .
PYTHONPATH=src pytest -q

使用本地准备好的 Cloudflare 二进制构建平台 wheel:

uv build
python scripts/build_platform_wheels.py --assets-dir /path/to/cloudflared-assets

说明

  • 默认有效期为 2 小时。
  • 端口被占用时会自动选择其他空闲端口。
  • --ttl 支持 30m、90s、2h 或秒数。

Metadata

Release files for qshare 0.2.9

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

Source distribution (sdist)

Source distribution for qshare 0.2.9
File Size Uploaded Provenance Actions
qshare-0.2.9.tar.gz 10.3 kB Without provenance Details for qshare-0.2.9.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for qshare 0.2.9
File Actions
qshare-0.2.9-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for qshare-0.2.9-py3-none-win_amd64.whl
qshare-0.2.9-py3-none-win32.whl Python 3 none Windows x86-32 Details for qshare-0.2.9-py3-none-win32.whl
qshare-0.2.9-py3-none-manylinux_2_17_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l Details for qshare-0.2.9-py3-none-manylinux_2_17_armv7l.whl
qshare-0.2.9-py3-none-manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for qshare-0.2.9-py3-none-manylinux2014_x86_64.whl
qshare-0.2.9-py3-none-manylinux2014_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details for qshare-0.2.9-py3-none-manylinux2014_i686.whl
qshare-0.2.9-py3-none-manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for qshare-0.2.9-py3-none-manylinux2014_aarch64.whl
qshare-0.2.9-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for qshare-0.2.9-py3-none-macosx_11_0_arm64.whl
qshare-0.2.9-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for qshare-0.2.9-py3-none-macosx_10_13_x86_64.whl
qshare-0.2.9-py3-none-linux_armv6l.whl Python 3 none linux armv6l Details for qshare-0.2.9-py3-none-linux_armv6l.whl

Total release size: 168.0 MB

Release files / qshare-0.2.9.tar.gz

Download URL qshare-0.2.9.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c0ec01db7d52b44a269d7ca568b34fa51f9027c10ac8395ae3a867c56c6d9f70
BLAKE2b-256 checksum
How to use checksums
d9da376a2ea5d22d9f4ccb52e8de218e7e1eca6f87286be1fdd29256a3133dd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qshare-0.2.9-py3-none-win_amd64.whl

Download URL qshare-0.2.9-py3-none-win_amd64.whl
Size 18.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
aeb23b5e8b230434a179afbf62ede806d9ea72aae363c9a9797f26ebb15d88ca
BLAKE2b-256 checksum
How to use checksums
8d5b98eba9ecf68d1cdb265a0447f39be0b135ab850ba92512864ec2d05866a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qshare-0.2.9-py3-none-win32.whl

Download URL qshare-0.2.9-py3-none-win32.whl
Size 18.5 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
f5379fcfa7ab5d6a36928e79df82a4a8c77372fc231a8c3afd3d26481797af38
BLAKE2b-256 checksum
How to use checksums
f98f626169f68958271e8f00d958b69fb23afa51a2bdb7720b90727d27d577a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qshare-0.2.9-py3-none-manylinux_2_17_armv7l.whl

Download URL qshare-0.2.9-py3-none-manylinux_2_17_armv7l.whl
Size 17.7 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
990857f56b13b2caf23b41a2c6d99087d5a88e56ca0c22dc4bf220024495bbce
BLAKE2b-256 checksum
How to use checksums
9ef278bca59f1a02b82c52372cd4c5a8f54cd05338bb5e1d86695c2855f24c5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qshare-0.2.9-py3-none-manylinux2014_x86_64.whl

Download URL qshare-0.2.9-py3-none-manylinux2014_x86_64.whl
Size 19.2 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
1de29de231c3a6b78f8cbc7d7282eca65e1756c22a6c28d78fbcc7c047ed1e0e
BLAKE2b-256 checksum
How to use checksums
95c3ff6e5af3fc05e26fdd6b6fd6405d1e38fceeb7bed45321fa69be97658348
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qshare-0.2.9-py3-none-manylinux2014_i686.whl

Download URL qshare-0.2.9-py3-none-manylinux2014_i686.whl
Size 18.4 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
31ab7cd08efa39e35905c407a2bac6258c359ac785917887a5e94be78777a398
BLAKE2b-256 checksum
How to use checksums
d59a336080b560f07a6afc99e37b657d837e454a9e4ea27aa14afbf2435d55fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qshare-0.2.9-py3-none-manylinux2014_aarch64.whl

Download URL qshare-0.2.9-py3-none-manylinux2014_aarch64.whl
Size 17.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
9bb49689663642a985c211c872c5b786938b7eaf3ccc7929c1a35758fff89857
BLAKE2b-256 checksum
How to use checksums
2bdcd3428aaeb8e7a84b2a01e6cafe3927419f16a0ffdb4fa032c89081b4cf6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qshare-0.2.9-py3-none-macosx_11_0_arm64.whl

Download URL qshare-0.2.9-py3-none-macosx_11_0_arm64.whl
Size 19.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
68d3f8caeaf80188a405a93cdc2a58ecb443bdceadf02c136897d1c99e629874
BLAKE2b-256 checksum
How to use checksums
73a5f7c0ada32468123b22980621789229bdd1a8cd427061355a6e64c8b157db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qshare-0.2.9-py3-none-macosx_10_13_x86_64.whl

Download URL qshare-0.2.9-py3-none-macosx_10_13_x86_64.whl
Size 21.1 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
794cfdf3d1a74306111c234f3e3d42185e0e5263efc05dcf0007eb0bf0c8a336
BLAKE2b-256 checksum
How to use checksums
dfa79e2a8994048f369d39fd96a7e472edf1d4446d655e4dffdf0a1660f23992
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qshare-0.2.9-py3-none-linux_armv6l.whl

Download URL qshare-0.2.9-py3-none-linux_armv6l.whl
Size 17.7 MB
Tags Python 3 linux armv6l
SHA-256 checksum
How to use checksums
cada9faf2e347d1158764ffab2e6d6ea5bb09070bd82686d975b0dbed8e1a557
BLAKE2b-256 checksum
How to use checksums
4aa62fa892d6486ce1a6790f25bb3874d74017cd56b7daddcf417fb8585db6b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for qshare 0.2.9

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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