Share files like magic - disposable file sharing via your public IP
Project description
Rift
One-time file sharing from your machine.
Rift starts a temporary server, prints a share link, and shuts down after the first successful download.
Install
pipx is recommended for Python tool installation:
pipx install magic-rift
or if you prefer uv, you can install with:
uv tool install magic-rift
For easier and more reliable sharing, install cloudflared (if not already installed): https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/
Quick Start
Share a file:
rift share /path/to/file.pdf
Rift prints a disposable link like:
https://PUBLIC_IP:PORT/4-crystal-salmon
After one successful download, the server exits and the link stops working.
Stop manually anytime with Ctrl+C.
How Connectivity Works
Rift tries methods in this order:
cloudflared(if installed)natpmpupnplocalhost.run(SSH tunnel)
If automatic forwarding/tunneling fails, Rift exits and does not print a public link.
For most users, installing cloudflared gives the smoothest setup.
Security Notes
- Links are one-time and include a random secret path.
- Files are served directly from your machine.
- HTTPS may use a self-signed cert by default, which can show browser warnings.
- If cert setup is unavailable, Rift can fall back to HTTP.
- No built-in authentication. Encrypt sensitive files before sharing.
Configuration Path
Rift stores config at:
~/.config/rift/config.json
License
MIT
Project details
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 magic_rift-0.1.2.tar.gz.
File metadata
- Download URL: magic_rift-0.1.2.tar.gz
- Upload date:
- Size: 43.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
786b10abd72e5afff9d29bee85750eb13f2ce60097e0f5fdff3d1ef8c232dac8
|
|
| MD5 |
1cfeba064db58319c3b1fc65d4baddc8
|
|
| BLAKE2b-256 |
68dab04633c63035d3544fa56c6c3846160c2cb826e39dc8a383e64991dbc960
|
File details
Details for the file magic_rift-0.1.2-py3-none-any.whl.
File metadata
- Download URL: magic_rift-0.1.2-py3-none-any.whl
- Upload date:
- Size: 42.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
093945429a76fad19470f9906eba57ab88e1f8f46a5f16c091df0d027d0b6aa8
|
|
| MD5 |
cdd3a08912e05ab0cc34b4233048339b
|
|
| BLAKE2b-256 |
f3fed57b1d0f1fa5253ad4edf780fb98d4a3e99d1d8622ae2e8849fc9b87a81b
|