Skip to main content

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:

  1. cloudflared (if installed)
  2. natpmp
  3. upnp
  4. localhost.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

magic_rift-0.1.3.tar.gz (43.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

magic_rift-0.1.3-py3-none-any.whl (43.5 kB view details)

Uploaded Python 3

File details

Details for the file magic_rift-0.1.3.tar.gz.

File metadata

  • Download URL: magic_rift-0.1.3.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for magic_rift-0.1.3.tar.gz
Algorithm Hash digest
SHA256 20b3cd4feb834c9739b8f461364ccce5a5dab7ff62aa971e65cfe61c8d038762
MD5 343d8100c2ad8bb0c6e0fad9ea6d8480
BLAKE2b-256 708a4f8d5ccdfb591add6c0efa70dc9d60ad10b91ac04fce1a08fe5c80d6a969

See more details on using hashes here.

File details

Details for the file magic_rift-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: magic_rift-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 43.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for magic_rift-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bf93703a23b0aa02ca1e86d2b3a1c5f46295fb3605bd37ebb09c2c3306892145
MD5 fbfa3b4918758965b7808131bc732417
BLAKE2b-256 8a69a0ee8432207e288cc886d85ff289657cd02284217ee6ba25b336f6c11ffc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page