Skip to main content

qshare

Quickly share a local file via a public TryCloudflare tunnel.

Features

  • Start a temporary local HTTP server on a random free port
  • Detect and avoid occupied ports automatically
  • Create a public TryCloudflare URL for the file
  • Support a default lifetime of 2 hours, adjustable via CLI arguments
  • Works on Linux, Windows, and macOS with a platform-specific bundled cloudflared binary
  • Ready for uv-managed development and PyPI packaging

Requirements

  • Python 3.6+
  • qshare platform wheels include the matching official cloudflared binary. qshare never downloads a binary at runtime; update qshare from PyPI to receive an updated bundled binary.

On a platform without a matching wheel, install cloudflared manually and add it to PATH.

Install

Using uv:

uv venv
source .venv/bin/activate
uv pip install -e .

Or install from PyPI after publishing:

pip install qshare

Usage

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

The command starts a local HTTP server on a random free port, creates a temporary public URL with TryCloudflare, and keeps the tunnel alive for the configured duration. If cloudflared is absent from PATH, qshare installs the binary bundled in the matching PyPI wheel into ~/.local/bin. Platform wheels are available for Cloudflare's Linux (x86, x86_64, ARM, ARMHF, ARM64), Windows (x86, x86_64), and macOS (Intel, Apple Silicon) releases.

After the public URL is printed prominently, qshare displays a terminal QR code for the same link. qshare accepts only a valid share hostname such as https://department-specialists-excellence-savings.trycloudflare.com; Cloudflare API URLs are rejected and the tunnel is retried. On Unix-like systems it then prompts: Run in background? Press 'd' to detach, or press Enter to keep in the foreground. Windows always runs in the foreground. When the TTL expires in foreground mode, qshare prints a notification and stops the share.

Build for PyPI

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

Then upload the resulting artifacts from the dist/ directory to PyPI.

Notes

  • The default lifetime is 2 hours.
  • If a port is occupied, qshare automatically selects another free port.
  • --ttl accepts values like 30m, 90s, 2h, or a plain number in seconds.
  • Background mode is triggered by entering d at the interactive prompt after the public URL appears.

Metadata

Release files for qshare 0.2.2

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.2
File Size Uploaded Provenance Actions
qshare-0.2.2.tar.gz 7.1 kB Without provenance Details for qshare-0.2.2.tar.gz

Built distributions (wheels)

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

Total release size: 168.0 MB

Release files / qshare-0.2.2.tar.gz

Download URL qshare-0.2.2.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
44b4d49173c693c9eca0a65f736d7a8c5516ecaec7083f4c2613d7a3312390ba
BLAKE2b-256 checksum
How to use checksums
b7b997c027a237281d33d2125aabd37d0149e24f47c68840a848633b5ac87b98
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.2-py3-none-win_amd64.whl

Download URL qshare-0.2.2-py3-none-win_amd64.whl
Size 18.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
eba69088419a755898150b4e70276fc00777d291342b858a8190b15e0480112f
BLAKE2b-256 checksum
How to use checksums
efb1be8959b544a8b2368b9359c58f6302789c8f92297a65362daf4bd2385cee
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.2-py3-none-win32.whl

Download URL qshare-0.2.2-py3-none-win32.whl
Size 18.5 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
a3ed40549f35f464e6830169c85a06bfd4163fcd14066f8c487fdca974211183
BLAKE2b-256 checksum
How to use checksums
04dfb1853d04e285db860350b923514545fa3e6d3e10f93e69db01ecbdbda345
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.2-py3-none-manylinux_2_17_armv7l.whl

Download URL qshare-0.2.2-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
c62ec597fb6b39d2086989334037ce433ee092361d5a2adeb2a68adf2c6aa61b
BLAKE2b-256 checksum
How to use checksums
a18d28fb5f1030a73c890a17016e8893438169be28b04043304e2345989cb594
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.2-py3-none-manylinux2014_x86_64.whl

Download URL qshare-0.2.2-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
ea17d703d794a9dcc2adc6f561f584628167829f893cffccb733406684eb7d96
BLAKE2b-256 checksum
How to use checksums
f28d0c91e48e8aa88a7e6fcb213b1d185b7ec70c668c2a2a8997a6c2a5b6ef7a
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.2-py3-none-manylinux2014_i686.whl

Download URL qshare-0.2.2-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
5a49fc814579905cc513faadaa93790505cc81e3f60fbd5ff2187d7f4ae9e7a3
BLAKE2b-256 checksum
How to use checksums
db9bec15f5aad86e1a53063471cf3becd55b426ee7f0419d7f8153d874a0836d
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.2-py3-none-manylinux2014_aarch64.whl

Download URL qshare-0.2.2-py3-none-manylinux2014_aarch64.whl
Size 17.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
e9c625ec19ed9ffce3b515ce6df89adbd55d66d5d8463a2f12aeb0288ef22d34
BLAKE2b-256 checksum
How to use checksums
e65d64ef2b83774c71ff5d39581d76429a026b40653ecc30fdaa529e273c8d15
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.2-py3-none-macosx_11_0_arm64.whl

Download URL qshare-0.2.2-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
4dc9d7f0b2b08d27c85a77495ea24d890609a5e708b43426b87deda4bd9f35ba
BLAKE2b-256 checksum
How to use checksums
ed2ba04170d5a1b998cdbe409cc358b34b3a4c3c669916b88d4fe75bf1123153
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.2-py3-none-macosx_10_13_x86_64.whl

Download URL qshare-0.2.2-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
509f607c306bf72331b29f1c2b75c25922996510236031f5345e991a7a54fa97
BLAKE2b-256 checksum
How to use checksums
f72405090d6dbcce08ba2d6769c40c6755dca675e4e6fc20515cfafd7ab95fb5
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.2-py3-none-linux_armv6l.whl

Download URL qshare-0.2.2-py3-none-linux_armv6l.whl
Size 17.7 MB
Tags Python 3 linux armv6l
SHA-256 checksum
How to use checksums
8890f8bd88ca9cd57f55a5cf01389790b7c4af6531c3c3f27c766df686ee8312
BLAKE2b-256 checksum
How to use checksums
1aa6817c1c87d694c954d137cdb33d6dce0aa3119c4f5dc86826b800fea8e7ef
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.2

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