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

Uploaded Python 3

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

Hashes for magic_rift-0.1.2.tar.gz
Algorithm Hash digest
SHA256 786b10abd72e5afff9d29bee85750eb13f2ce60097e0f5fdff3d1ef8c232dac8
MD5 1cfeba064db58319c3b1fc65d4baddc8
BLAKE2b-256 68dab04633c63035d3544fa56c6c3846160c2cb826e39dc8a383e64991dbc960

See more details on using hashes here.

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

Hashes for magic_rift-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 093945429a76fad19470f9906eba57ab88e1f8f46a5f16c091df0d027d0b6aa8
MD5 cdd3a08912e05ab0cc34b4233048339b
BLAKE2b-256 f3fed57b1d0f1fa5253ad4edf780fb98d4a3e99d1d8622ae2e8849fc9b87a81b

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