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.

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

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

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"

To send your clipboard:

pyshare> paste

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyshareit-1.8.0.tar.gz
Algorithm Hash digest
SHA256 58828bd8c868f8dea103d9123414dd735364f9f5609d7ed123d15cd867f41078
MD5 f1e5e169572bff0b655b90412dd76eeb
BLAKE2b-256 9e589511288bea9f783ed33f3740c748a1e860a1270f85d2e76924b60ca10182

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyshareit-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 21.8 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67d7973a3ccb14c7f087dd2c4d8bf05f46f1b74e896bd62bbe798eb138f6c6e8
MD5 866e8d1e0fa64e4560bfd0fa9e0fb763
BLAKE2b-256 d4aa49d7e5cb52828e35e23b3071df2963b014ca72c988324000dec0d2b969a9

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