Instant file sharing from your terminal - share files over LAN with a simple command
Project description
QRDrop
Instant file sharing from your terminal. Serve the current directory over your local network with one command: get a URL, a memorable password, and a QR code your phone can scan in moments.
uvx qrdrop
No setup, no fuss, ctrl+c and it's gone.
Getting Started
Run it without installing anything:
uvx qrdrop # Python 3.11+ via uv
docker run --rm -p 8000:8000 -v "$PWD:/data" \
itsloopyo/qrdrop --public-host <your-LAN-IP> # no Python at all
Or install it (Python 3.11+):
pip install qrdrop
pipx install qrdrop
See Docker below for port mapping, flags, and image details.
1. Share a directory
cd ~/photos
uvx qrdrop
╭──────────────────────────────────────────────────╮
│ 📂 QRDrop v0.0.0 │
╰──────────────────────────────────────────────────╯
Serving: /home/you/photos
Local: http://localhost:8000
Network: http://192.168.1.42:8000
Password: ember-velvet-canyon
┌─ Scan for instant access ─┐
▄▄▄▄▄▄▄ ▄ ▄▄▄▄ ▄▄▄▄▄▄▄
█ ▄▄▄ █ █▄ ▀█▀ ▀ █ ▄▄▄ █
█ ███ █ ▀██ ▄▄▀▄▀ █ ███ █
█▄▄▄▄▄█ █▀█ ▄▀█ █ █▄▄▄▄▄█
▄▄ ▄▄▄ █▀ ▀▀ ▄ ▄▄▄▄
█▀▀▀ ▄▄█▄▄▄▄█▄██ ▄▄▀█▄▀
▄▀▄▀█▄▄▄▀ ▄ █ ▀▄█ ▀▄██▄
▀▀ ▀▄▄▀▀█▀█ ▀▄██▀ ▄█▄▄▀
▄▄▀█▄▀▄▄▀█▀█ ▄▄▄▄██▄█▀
▄▄▄▄▄▄▄ ▀▀█▄▄█▄ █ ▄ █
█ ▄▄▄ █ ██ █ █▀█▄▄▄████
█ ███ █ ▄▄█▄ ▀▄▀█▀ ▄▀█▀
█▄▄▄▄▄█ █▀▄ ▀▄▀▄ ▄▀▀▀██▄
└───────────────────────────┘
Press Ctrl+C to stop the server
If port 8000 is busy, QRDrop automatically picks the next free one.
2. Connect from another device
- Phone: scan the QR code. It encodes a pre-authenticated link, so you land in the file browser with no typing.
- Anything else: open the network URL and enter the three-word password.
3. Browse, view, download
The web UI lets you:
- Browse directories with breadcrumb navigation
- View files inline: syntax-highlighted code (Python, Rust, Go, TypeScript, shell, and dozens more), images, and PDFs
- Download any single file, or select several and grab them as one ZIP, TAR.GZ, or TAR.BZ2 archive
4. Allow changes (optional)
QRDrop is read-only by default. Opt in to more:
uvx qrdrop --upload # downloads and uploads only
uvx qrdrop --modify # downloads, uploads, delete, new folders + rename
Usage Examples
uvx qrdrop --port 9000 # custom port
uvx qrdrop --password correct-horse # bring your own password
uvx qrdrop --hide-dotfiles # exclude dotfiles from listings
uvx qrdrop --bind 192.168.1.42 # bind one interface (default: 0.0.0.0)
uvx qrdrop --timeout 7200 # expire sessions after 2 hours (default: never)
uvx qrdrop --quiet # no banner, warnings-only logs
Note that QRDrop lists everything by default, including dotfiles. --hide-dotfiles is the opt-out.
CLI Reference
qrdrop [OPTIONS]
Options:
-p, --port PORT Port to serve on (default: 8000)
-b, --bind ADDRESS Address to bind to (default: 0.0.0.0)
--public-host HOST[:PORT]
Address to advertise in the Network URL and QR code.
Required for the QR code to work in Docker, where the
auto-detected IP is the container's (env: QRDROP_PUBLIC_HOST)
--password TEXT Use specific password instead of generating one
--hide-dotfiles Exclude files starting with '.' from listings
--upload Allow file uploads
--modify Allow uploads, deletions, and directory create/rename (implies --upload)
--timeout SECONDS Expire sessions after this many seconds (default: sessions
last until the server stops)
-q, --quiet Suppress startup banner
--version Show version and exit
--help Show help and exit
Docker
Images are published to Docker Hub as itsloopyo/qrdrop on every release. Mount the directory you want to share at /data, forward a port to 8000, and pass your machine's LAN IP as --public-host:
docker run --rm -p 8000:8000 -v /path/to/share:/data itsloopyo/qrdrop --public-host 192.168.1.50
--public-host matters: a container can only see its own internal IP (something like 172.17.0.2), so without it the Network URL and QR code point at an address no phone can reach. Find your LAN IP with ipconfig (Windows), ipconfig getifaddr en0 (macOS), or ip addr (Linux). -e QRDROP_PUBLIC_HOST=192.168.1.50 works too.
The startup banner, including the generated password and QR code, goes to the container logs, so run in the foreground or check docker logs. Any qrdrop flags can be appended:
docker run --rm -p 9000:8000 -v "$PWD:/data" itsloopyo/qrdrop --public-host 192.168.1.50:9000 --password correct-horse --modify
The container always listens on port 8000 internally; pick your external port with -p <port>:8000 rather than --port, and if it differs from 8000, include it in --public-host (as in the example above) so the advertised URLs use the published port.
The image is multi-stage (uv on Alpine), runs as a non-root user, and has a built-in healthcheck against /health. To share read-write (with --upload or --modify), the mounted directory must be writable by uid 1000.
Development
The dev loop is pixi:
pixi run build # editable install with dev extras
pixi run test # pytest with coverage
pixi run test-e2e # Playwright end-to-end tests
pixi run lint # ruff check
pixi run format # ruff format
pixi run dev # run qrdrop from source
QRDrop is built on Starlette, Uvicorn, Jinja2, and aiofiles.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qrdrop-0.1.1.tar.gz.
File metadata
- Download URL: qrdrop-0.1.1.tar.gz
- Upload date:
- Size: 136.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4732407c01445d0174b4e3902b3ab0bab8e138f730a9b5086e06d17c3ca0396a
|
|
| MD5 |
e96eba973be809c73bdd5e1a29533d97
|
|
| BLAKE2b-256 |
42da9ff63a2d9cdc4bf8a58da00528325a87f59dd3b38956f838c25b476d7a54
|
Provenance
The following attestation bundles were made for qrdrop-0.1.1.tar.gz:
Publisher:
release.yml on itsloopyo/qrdrop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qrdrop-0.1.1.tar.gz -
Subject digest:
4732407c01445d0174b4e3902b3ab0bab8e138f730a9b5086e06d17c3ca0396a - Sigstore transparency entry: 1794869242
- Sigstore integration time:
-
Permalink:
itsloopyo/qrdrop@a12c94e5af973705fdab1c30a95cb849a1d8aaa3 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/itsloopyo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a12c94e5af973705fdab1c30a95cb849a1d8aaa3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file qrdrop-0.1.1-py3-none-any.whl.
File metadata
- Download URL: qrdrop-0.1.1-py3-none-any.whl
- Upload date:
- Size: 126.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3093d70c7746a5fb304b4c6c4b174d8db1303da66e2b7fa2bba5ca29a2d3404
|
|
| MD5 |
477a97e334db15eb801f85caa32b894e
|
|
| BLAKE2b-256 |
2d20f2bf80c5ca20ac48ea5cf803dd0edf9b57fa139ff35302081cdf351686cf
|
Provenance
The following attestation bundles were made for qrdrop-0.1.1-py3-none-any.whl:
Publisher:
release.yml on itsloopyo/qrdrop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qrdrop-0.1.1-py3-none-any.whl -
Subject digest:
b3093d70c7746a5fb304b4c6c4b174d8db1303da66e2b7fa2bba5ca29a2d3404 - Sigstore transparency entry: 1794870505
- Sigstore integration time:
-
Permalink:
itsloopyo/qrdrop@a12c94e5af973705fdab1c30a95cb849a1d8aaa3 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/itsloopyo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a12c94e5af973705fdab1c30a95cb849a1d8aaa3 -
Trigger Event:
push
-
Statement type: