Metadata-Version: 2.4
Name: byk-lansend
Version: 2026.6.6
Summary: a plugin for bykcli, start a local web server for sharing files over LAN
Author-email: fcbyk <731240932@qq.com>
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: bykcli-plugin<2.0,>=1.0.0a6
Requires-Dist: click>=8.0.0
Requires-Dist: flask>=2.0
Requires-Dist: pyperclip>=1.9.0
Requires-Dist: waitress>=2.0.0
Requires-Dist: psutil>=5.9.0
Provides-Extra: byk
Requires-Dist: bykcli<2.0,>=1.0.0a6; extra == "byk"
Dynamic: license-file

# lansend

[![PyPI](https://img.shields.io/pypi/v/byk-lansend.svg)](https://pypi.org/project/byk-lansend/)
[![Python](https://img.shields.io/badge/python-%E2%89%A53.10-blue?logo=python&logoColor=white)](https://www.python.org/downloads/)
[![License](https://img.shields.io/github/license/fcbyk/lansend.svg)](https://github.com/fcbyk/lansend/blob/main/LICENSE)

A LAN file sharing plugin for `bykcli`

## Installation

If the `byk` command is already available on your system:

```bash
pip install byk-lansend
```

If you don't have `byk` installed yet:

```bash
pip install "byk-lansend[byk]"
```

## Usage

Share the current directory:

```bash
byk lansend
```

Share a specific directory:

```bash
byk lansend -d /path/to/share
```

Specify port:

```bash
byk lansend -p 8080
```

After startup, it will output both local and LAN access addresses, and automatically open the browser by default.

## Parameters

- `-d, --directory`: Specify the shared directory
- `-p, --port`: Specify the port
- `-ap, --ask-password`: Set upload password at startup
- `-nb, --no-browser`: Do not automatically open browser
- `-nd, --hide-download`: Hide download button
- `-nu, --disable-upload`: Disable upload
- `--chat`: Enable chat

View help:

```bash
byk lansend -h
```
