Skip to main content

A CLI tool for peer-to-peer file sharing with QR codes

Project description

📡 p2pshare

p2pshare is a lightweight, Python-based CLI tool for seamless file transfers between your PC and phone using a local Flask server and QR codes. No cloud, no login — just fast, private, peer-to-peer sharing over your local Wi-Fi.


✨ Features

  • 🔁 Two-way file transfer: phone → PC and PC → phone
  • 🌐 Local server (Flask + Waitress) for platform-agnostic access
  • 📱 QR code generation for easy phone access
  • 🪵 Logs file uploads with size and timestamp
  • 🔒 No external hosting or third-party storage — fully offline if on same network

🚀 Getting Started

1. Clone and Install

pip install p2pshare-cli

2. Usage

📤 Send Files (Send a file from your phone to your computer)

p2pshare --send

📥 Receive Files (Send a file from your computer to your phone)

p2pshare --receive path/to/file.txt

A QR code and webpage will appear. Open it on your phone and upload a file. It will be saved in the uploads/ directory.

###⚙️ Options

| Flag       | Description                                     |
|------------|-------------------------------------------------|
| `--send`   | Send a file from PC to phone                    |
| `--receive`| Receive a file from phone to PC                 |
| `--time`   | Auto shutdown server after N seconds idle       |

p2pshare --receive --time 60

This shuts the server down after 60 seconds of no uploads.

All dependencies are auto-installed via pip install .

🧠 Why This Project?

Ever emailed yourself a file just to move it between your devices? p2pshare eliminates that pain. This tool makes peer-to-peer file sharing effortless with nothing but Python and a QR code.

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

p2pshare_cli-0.1.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

p2pshare_cli-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file p2pshare_cli-0.1.1.tar.gz.

File metadata

  • Download URL: p2pshare_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for p2pshare_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7ea05bbab78c98ed915bfc5c24cbf7412f83116d743c95d4c987e6dbaf6ffec0
MD5 b7c56b50699920750a31d46369f72986
BLAKE2b-256 9892a2045f078adf60eba6d0b695095f529595c73360922b684d8c0ec20d0d39

See more details on using hashes here.

File details

Details for the file p2pshare_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: p2pshare_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for p2pshare_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cebfd1c1ee964272b6f3dbb030ec35d932a08137659e70971125f9798b254352
MD5 d9e72b024ac2fa34f20a70e0c32f44f9
BLAKE2b-256 7a14522fcedbbd7edf36497bea40910637b714a6730d3c0c819ff2f6c211c321

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