Skip to main content

A fast, peer-to-peer file sharing tool with a simple terminal interface.

Project description

pyshare-cli v3.0: Secure Interactive File Transfer

pyshare is a modern, secure, and interactive command-line tool for transferring files, folders, and text snippets across your local network. All transfers are protected with end-to-end encryption and a confirmation PIN.

Features

  • Interactive Terminal Session: Run pyshare to enter an intuitive file-sharing environment.
  • End-to-End Encryption: All data is encrypted using a robust RSA+Fernet handshake, ensuring nobody on the network can snoop on your files.
  • Confirmation PIN: A 4-digit PIN is displayed on the receiver's screen and must be confirmed by the sender, preventing accidental transfers.
  • Folder & Multiple File Transfers: Send an entire folder with one command. pyshare automatically zips it, sends it, and unzips it on the other side.
  • Text & Clipboard Sharing: Instantly send a text snippet or your clipboard contents with the send --text and paste commands.
  • Resumable Transfers: If a large file transfer gets interrupted, it will automatically resume from where it left off.
  • Persistent Command History: Press the up and down arrow keys to navigate your command history.
  • Auto-Discovery: Automatically finds other devices on the network running pyshare.
  • Visual Progress Bars: A clean tqdm progress bar shows the status of every transfer.
  • Mobile Sharing: Share files with mobile devices via a web interface using connect -m.

Installation

You will need Python 3.7+ and pip.

pip install pyshareit

To install locally for development from the pyshare-cli directory:

pip install -e .

How to Use

Start the Session

Open a terminal on two devices and run:

pyshare

You will enter the interactive pyshare> prompt.

Start Receiver

On the computer that will receive the file, type:

pyshare> receive

Start sender

On the computer that will send the file, type:

pyshare> connect

The receiver will start in the background, ready to accept connections.

### Mobile Sharing

To share files with a mobile device (or any device with a browser):

```bash
pyshare> connect -m

This will start a local web server and display a URL (e.g., http://192.168.1.x:5000). Open this URL on your mobile device to send or receive files.

Send a File, Folder, or Text

On the other computer:

To send a file:

pyshare> send "/path/to/my document.zip"

To send a folder:

pyshare> send "/path/to/my project folder/"

To send text:

pyshare> send --text "Here is the link: https://example.com"

Confirm the Transfer

  1. The sender's terminal will discover the receiver. Select it by its ID.
  2. The receiver's terminal will ask for confirmation (y/n).
  3. The sender's terminal will then display a 4-digit PIN. This PIN is shown to the receiver in the previous step, but for security, you should verbally confirm it with the person at the receiver's machine.
  4. Once the PIN is confirmed and the handshake is complete, the encrypted transfer will begin.

Exit

When you are finished, type exit or quit.

License

This project is licensed under the GNU General Public License v3.0 (GPLv3).

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

pyshareit-1.12.0.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

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

pyshareit-1.12.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file pyshareit-1.12.0.tar.gz.

File metadata

  • Download URL: pyshareit-1.12.0.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pyshareit-1.12.0.tar.gz
Algorithm Hash digest
SHA256 f36ec0ade02aa94a137dc2dd2528fdf124c89dd99983790e64eb03b921421610
MD5 34cd0e26ec205bfb9af40e5b06ec87d5
BLAKE2b-256 7a15156f45c0399fde533f4d9f71feeabf4fe1504219ca9af80a7361195cb222

See more details on using hashes here.

File details

Details for the file pyshareit-1.12.0-py3-none-any.whl.

File metadata

  • Download URL: pyshareit-1.12.0-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pyshareit-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9aedfaf42cebb86e31072b914027647b98bb430c18a0aa8df8a00a2c2162de38
MD5 b84f6fa93d299d65c4525fe87e98731c
BLAKE2b-256 04e695cd10250e672a3a98c1f4803bf3378264c4a9b18981aa5e48b87710e2a9

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