Metadata-Version: 2.4
Name: clipdroper
Version: 0.1.0
Summary: Paste text or drop a file from your phone straight into your PC clipboard and Downloads folder, via QR code.
Author: clipdroper contributors
License-Expression: MIT
Keywords: clipboard,qr,phone,lan,transfer,file,http
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Communications
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: segno>=1.6
Requires-Dist: pyperclip>=1.8
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: ruff>=0.5; extra == "dev"
Dynamic: license-file

# clipdroper

Paste text or drop a file from your phone straight into your **PC** — clipboard and
Downloads folder — using a QR code printed in your terminal. No accounts, no apps on the
phone, just a browser.

## How it works

```
  phone camera                      your PC
      │  scans QR ───────────────►  clipdroper prints QR when started
      ▼                        ┌───► ┌──────────────────────────────┐
  phone browser opens URL      │     │  clipdroper (HTTP server)    │
      │  POST text / file      │     │   text      → your clipboard │
      ▼  (token-protected)     │     │   files     → ~/Downloads/…  │
      └────────────────────────┴────► └──────────────────────────────┘
```

Your PC runs one command, prints a QR that encodes a short random token; the phone
connect via that URL only. The token guards the inbox, so a neighbor with the token
is the only one who can drop stuff while it runs.

## Install

```
pip install clipdroper
```

## Run

```
clipdroper
```

It prints the QR and the URL, and waits:

```
clipdroper: listening on http://192.168.0.5:8124/?k=2XfQk8...
```

* Scan the QR with the phone camera → the page opens.
* Paste text → **Send to clipboard** → it lands in the PC clipboard instantly.
* Pick a file → **Send file** → it is saved to `~/Downloads/clipdroper/`.

Options: `--port`, `--dir` (folder for files), `--token`, `--no-qr`.

## Notes / security

* Toy for a trusted LAN. The token is short by design — do not expose the port to the
  internet.
* No TLS. Clipboard works on Windows/macOS/Linux-desktop (via `pyperclip`).

## Tests

```
pip install -e ".[dev]"
pytest            # QR rendering, HTTP server, token auth, file upload
```
