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,请先加密私密文件。上传过程中会显示进度。

CNB 渠道适合需要持久下载地址或 Cloudflare 不稳定的场景。首次使用时程序会明确询问确认,只有输入 y 才会开始上传;上传完成后可直接使用 CNB 下载链接。CNB Release 中的文件不会由 qshare 自动删除,请按需管理。

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.3.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.3.9
File Size Uploaded Provenance Actions
qshare-0.3.9.tar.gz 18.0 kB Without provenance Details for qshare-0.3.9.tar.gz

Built distributions (wheels)

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

Total release size: 205.7 MB

Release files / qshare-0.3.9.tar.gz

Download URL qshare-0.3.9.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
048f51ab7d4d5743c6bfae959d5492ef2a82ed2d6ccce79b2ad6fbff163b9da1
BLAKE2b-256 checksum
How to use checksums
a428fed0ec8eda56f9c42c6ebe8cef5602bfef1eb474fb41ad5be1fd160011f6
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.3.9-py3-none-win_amd64.whl

Download URL qshare-0.3.9-py3-none-win_amd64.whl
Size 18.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
ee73bd0f3ab4d2eec1701fdd1769fc75d00770376a4a719a3a5c43bdbff1f7ff
BLAKE2b-256 checksum
How to use checksums
511d523554ec0eab0883202765c20ab8d82bab79077c42071e74ba7a3310e1d9
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.3.9-py3-none-win32.whl

Download URL qshare-0.3.9-py3-none-win32.whl
Size 18.5 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
e3df6a563f7059dd738b5a8d720410fd0da3c2c8a46f75b9a31d1467f7a78f4a
BLAKE2b-256 checksum
How to use checksums
ac040c647755bacd6c50a11f7014bbc4c03fb196fabdbef646fb9a59aaca8c83
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.3.9-py3-none-manylinux_2_17_armv7l.whl

Download URL qshare-0.3.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
42aed04e8f65a39b393795f4bbf05b651566d6c14ed9d3bc943d56e4080722cc
BLAKE2b-256 checksum
How to use checksums
6ddf259408f0ed8ec75733dfe7f60dcfb41622378722438224d51e83b108e892
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.3.9-py3-none-manylinux2014_x86_64.whl

Download URL qshare-0.3.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
f6debb23ac143efc50b1833e1dbd91d2a950937fa7ebd8be1d9da0e31245c172
BLAKE2b-256 checksum
How to use checksums
8f9d23b81df66d523d276500dcf578191f915d49197082c11e2647c171c041d9
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.3.9-py3-none-manylinux2014_i686.whl

Download URL qshare-0.3.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
12ad708f425bc16ddc0844f97abe5c8f66450d13d66e5cd87b92f29cad0ba472
BLAKE2b-256 checksum
How to use checksums
addf71183c820efe5414cb68282a679e2180c384768c6bff1d71da2724830bd2
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.3.9-py3-none-manylinux2014_aarch64.whl

Download URL qshare-0.3.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
6cdbca0b7a8be79a4fbb06e3796bd237d901bf2040f5f403f99e1c1e6d46c724
BLAKE2b-256 checksum
How to use checksums
a0e10fda6bc8cea6bb5f4324d997d7265ff7525e0a49c4368c3056787f30fd58
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.3.9-py3-none-manylinux1_x86_64.whl

Download URL qshare-0.3.9-py3-none-manylinux1_x86_64.whl
Size 19.2 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7eb8c8e94f0830afa0532098b5cab814d280d6e373ba23e9eedc5d629a97f6c6
BLAKE2b-256 checksum
How to use checksums
24cb40ba13fa8c0df73edeefe2c5a10bcf2a234496adba50deb5b69e6cd15076
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.3.9-py3-none-manylinux1_i686.whl

Download URL qshare-0.3.9-py3-none-manylinux1_i686.whl
Size 18.4 MB
Tags Linux glibc 2.5+ x86-32 Python 3
SHA-256 checksum
How to use checksums
e16c48f9493b126e1e43435272fe0833d02e16a8a8230cce134421db7efdff40
BLAKE2b-256 checksum
How to use checksums
cc8863718439bfc199b3ea1cd5469ab270c296a4086b803fe1f609d25978336b
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.3.9-py3-none-macosx_11_0_arm64.whl

Download URL qshare-0.3.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
04e7cf434807631684031b997a63d87f865e5337df528dba35ddd0f968b7f2f0
BLAKE2b-256 checksum
How to use checksums
f48b52d7340421b39dec65dfcd2e1cbac1c6a59d27992f09d2ca88a25497a4b1
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.3.9-py3-none-macosx_10_13_x86_64.whl

Download URL qshare-0.3.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
ef5a2eb6a1e28181856fd8a5227099944267161a69b163c030ee476eb06d083b
BLAKE2b-256 checksum
How to use checksums
4cfed092facb2e42ac355fe11cf69a2dc5928e2524efe392ac31c6310e97792d
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.3.9-py3-none-linux_armv6l.whl

Download URL qshare-0.3.9-py3-none-linux_armv6l.whl
Size 17.7 MB
Tags Python 3 linux armv6l
SHA-256 checksum
How to use checksums
b69a0a5d1d26944442008fe1e64e94d9766cf1a9092b48f501a7998996124563
BLAKE2b-256 checksum
How to use checksums
5c8e0ec850361174223d40adfcee3aa4b8683b99ac12b77ebd78ad130080ee10
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.3.9-py3-none-any.whl

Download URL qshare-0.3.9-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de046075735390b577cf42b2339e005693512b8759d74f2a61e9dba59f63f3c5
BLAKE2b-256 checksum
How to use checksums
75de49819421a8f171c44a334694b22de39e88d16a460a8b971492ac23f29025
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.3.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