A simple file transfer tools, similar to rz/sz but compatible with tmux (control mode), which works with iTerm2 and has a nice progress bar.
Project description
trzsz
A simple file transfer tools, similar to rz/sz but compatible with tmux (control mode), which works with iTerm2 and has a nice progress bar.
Why?
I love to use iTerm2 integrating with tmux to manage terminal sessions.
Sometimes, I need to transfer some files between my laptop and the remote server.
Considering laptop --> hostA --> hostB --> docker --> tmux
, using scp to transfer files is inconvenience.
Tmux is not going to support rz/sz ( 906, 1439 ), and I found out that creating a new file transfer tools is much easier than patching tmux.
Additionally, iTerm2-zmodem is not supporting a progress bar. Is there something wrong happened or just need more time?
Requirements
- Python
- Python’s standard library is good enough.
- iTerm2
- Tmux Integration and Coprocesses are so cool.
btw
without tmux works too.
- zenity
- Optional for a nice progress bar.
Installation
Server side
- Install trzsz-svr
python3 -m pip install --upgrade trzsz-svr
Client side
-
Install trzsz-iterm2
python3 -m pip install --upgrade trzsz-iterm2
-
Install iTerm2 and create a Trigger as follows.
Name Value Regular Expression :(:TRZSZ:TRANSFER:[SR]:\d+\.\d+\.\d+)
Actions Run Silent Coprocess
Parameters /usr/local/bin/trzsz-iterm2 \1
Enabled ✅ -
Optional
install zenity for a nice progress bar.- should be placed at
/usr/local/bin/zenity
- should be placed at
Manual
-
trz
upload files to remote serverusage: trz [-h] [-v] [path] Receive file(s), similar to rz but compatible with tmux (control mode). positional arguments: path Path to save file(s). (default: current directory) optional arguments: -h, --help show this help message and exit -v, --version show program's version number and exit
-
tsz
download files from remote serverusage: tsz [-h] [-v] file [file ...] Send file(s), similar to sz but compatible with tmux (control mode). positional arguments: file File(s) to be sent. optional arguments: -h, --help show this help message and exit -v, --version show program's version number and exit
Screenshot
-
Upload files to remote server.
-
Download files from remote server.
Contact
Feel free to email me lonnywong@qq.com (same as my PayPal account, just in case you want to deduct🤑).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file trzsz-svr-0.1.1.tar.gz
.
File metadata
- Download URL: trzsz-svr-0.1.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f022d3bc4558b5a500322bededa5bb1db66f352bee80508d5fc6885f23765b4a |
|
MD5 | 3917d1a612c0ed3d78b29636c934d7e6 |
|
BLAKE2b-256 | 9f7b759b50a0f1832d7a65adaf6309b2c6cada7c5d9d75650fac498ed312a8d4 |
File details
Details for the file trzsz_svr-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: trzsz_svr-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a94cdca17b20751a65376c582f867d0fa16829393f1e2368243ceb6c88f1ef3 |
|
MD5 | 6de19eb552abb1efdcbbb5ef98006727 |
|
BLAKE2b-256 | bff5219247a967ae662f1a8cf183a427e9ab6a720df920c333d80d94d0eb8de8 |