Skip to main content

LocalSend CLI tool

Project description

LocalSend CLI

A lightweight, modular Python CLI implementation of the LocalSend Protocol (v2). This tool allows you to discover devices, send files, and receive data directly from your terminal, fully compatible with official LocalSend clients.

Features

  • Device Discovery: Scan your local network for active LocalSend instances.
  • File Transfer: Send one or multiple files to any LocalSend-enabled device.
  • Receiver Mode: Start a local server to receive files, folders, or text messages.
  • Self-Signed TLS: Automatic generation of required SSL certificates for secure transfers.

Installation

Prerequisites

  • Python 3.8 or higher
  • requests and cryptography libraries

Setup

  1. Clone the repository or download the files.
  2. Install dependencies:
    pip install requests cryptography
    

Usage

Scan for Devices

Find other LocalSend devices on your network using UDP multicast.

./localsend-cli scan

Options:

  • --timeout <seconds>: Duration to listen for responses (default: 5).
  • --json: Output as a stream of JSON objects.
  • --clean: Output only IP addresses.

Send Files

Send files to a specific target IP.

./localsend-cli send <device-ip> image.png report.pdf

Options:

  • --port <port>: Target port if different from default (53317). You dont need to change this most of the time.
  • --json: Progress and status in JSON format.

Receive Files

Start a server to wait for incoming transfers.

./localsend-cli receive --output ./incoming

Options:

  • --output <dir>: Directory to save received files (default: current directory).
  • --pin <code >: Require a specific PIN from the sender.
  • --json: Event-based JSON output (ready, incoming, saved, etc.).

Credits

Localsend: Website GitHub

Localsend Protocol: https://github.com/localsend/protocol

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

localsend_cli-0.1.0.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

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

localsend_cli-0.1.0-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file localsend_cli-0.1.0.tar.gz.

File metadata

  • Download URL: localsend_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for localsend_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 00354225bacf7f74f6e4a49d01fd11348446c275f372b56cfc0147fc4ee7791d
MD5 15859ba86f4b869909bffe0a8d0d03f4
BLAKE2b-256 7a56447bae22866168291fa2dcea6a32f59c74794e719a391170da544d3e100d

See more details on using hashes here.

File details

Details for the file localsend_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: localsend_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for localsend_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fb17ed57b8e872d5edcae431fc0af838821aef96b8d6bf9724c76a6c2513edc
MD5 ee9fd491d4a3c021ffe491cf68a75770
BLAKE2b-256 8edd77d86470d326f121ab398fec1454677eda9d3fe7f5caeab85743fba2059b

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