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.4.tar.gz (43.9 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.4-py3-none-any.whl (43.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magic_rift-0.1.4.tar.gz
  • Upload date:
  • Size: 43.9 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.4.tar.gz
Algorithm Hash digest
SHA256 463b51b27080fca87aae085ba8109c826217333fb89d6db1f3628d2459332ce0
MD5 18037baa768e9d256844bc2999e80934
BLAKE2b-256 04a2abec70e6772b983ac11a7c8ef8137e5276cd33d7a1d0103880ca27956503

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magic_rift-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 43.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 80c998cf88bd446ecae3de05f24a4a6f32f7aa4adea31af9c544700e727bb2a2
MD5 aa56bd32097819b9654bdf17f7a5a935
BLAKE2b-256 12307d710b688a44edb7eb06bff18bd0daf97f075382a0a19443fa3c05fb6e1f

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