init
Some checks failed
Build and Release / Build on macos-latest (push) Has been cancelled
Build and Release / Build on ubuntu-latest (push) Has been cancelled
Build and Release / Build on windows-latest (push) Has been cancelled
Build and Release / release (push) Has been cancelled

This commit is contained in:
Matt.Ma
2025-09-09 15:06:18 +08:00
commit 6d149cefed
6 changed files with 499 additions and 0 deletions

43
README.md Normal file
View File

@@ -0,0 +1,43 @@
# rsync-tui
一个基于 Python 和 prompt_toolkit 的跨平台远程文件管理器,支持 SSH 目录浏览、批量 rsync 下载、断点续传、实时进度输出。
## 特性
- 远程 SSH 目录浏览与文件选择
- 批量下载支持断点续传rsync --partial
- 实时显示 rsync 原始输出和进度
- 支持 Linux/macOS/WSL
- 纯命令行 TUI键盘友好
## 快速开始
1. 安装依赖:
```bash
pip install prompt_toolkit
```
2. 运行:
```bash
python rsync-tui.py <远程主机IP或域名> --user <用户名> --port <端口>
```
例如:
```bash
python rsync-tui.py 192.168.1.100 --user root --port 22
```
3. 操作说明:
- 上下方向键:移动光标
- 空格:选择/取消文件
- 回车:进入目录/返回上级
- D批量下载选中文件/文件夹
- Q退出并强制终止所有传输
- 右侧窗口实时显示 rsync 输出
## 依赖
- Python 3.7+
- prompt_toolkit
- rsync (本地和远端均需安装)
- ssh
## 开源协议
MIT License