Skip to main content

trzsz is a simple file transfer tools, similar to lrzsz ( rz / sz ) but compatible with tmux, which works with iTerm2 and has a nice progress bar.

Project description

trzsz

trzsz is a simple file transfer tools, similar to lrzsz ( rz / sz ) but compatible with tmux.

which works with iTerm2 and has a nice progress bar.

Website: https://trzsz.github.io

MIT License PyPI trzsz

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 lrzsz ( 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

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+)
    Action Run Silent Coprocess
    Parameters /usr/local/bin/trzsz-iterm2 \1
    Enabled

    iTerm2 Trigger configuration

  • Optional install zenity for a nice progress bar.

    • should be placed at /usr/local/bin/zenity

Manual

  • trz upload files to remote server

    usage: trz [-h] [-v] [path]
    
    Receive file(s), similar to rz but compatible with tmux.
    
    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 server

    usage: tsz [-h] [-v] file [file ...]
    
    Send file(s), similar to sz but compatible with tmux.
    
    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.

    Upload files looks good

  • Download files from remote server.

    Download files looks good

Contact

Feel free to email me lonnywong@qq.com (same as my PayPal account, just in case you want to deduct🤑).

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

trzsz-iterm2-0.1.3.tar.gz (7.4 kB view details)

Uploaded Source

Built Distributions

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

trzsz_iterm2-0.1.3-py3.9.egg (11.7 kB view details)

Uploaded Egg

trzsz_iterm2-0.1.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

trzsz_iterm2-0.1.3-py2.7.egg (11.6 kB view details)

Uploaded Egg

File details

Details for the file trzsz-iterm2-0.1.3.tar.gz.

File metadata

  • Download URL: trzsz-iterm2-0.1.3.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for trzsz-iterm2-0.1.3.tar.gz
Algorithm Hash digest
SHA256 170080946a423d4b143d92f4d7418539b0627666964699b355715012c0b857de
MD5 5bf392b11d5b9719b80c3add1398e7cb
BLAKE2b-256 8c374a89692354a206f1eb85e2ed5409aff320db8f83a5a0504a755ab15493b3

See more details on using hashes here.

File details

Details for the file trzsz_iterm2-0.1.3-py3.9.egg.

File metadata

  • Download URL: trzsz_iterm2-0.1.3-py3.9.egg
  • Upload date:
  • Size: 11.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for trzsz_iterm2-0.1.3-py3.9.egg
Algorithm Hash digest
SHA256 d2313d77e2cddc37201aac883e472a04fa2e40d2f17402ed65a9d8e1e20c5caa
MD5 9d23b24afd1a53350b51b3b3f943d716
BLAKE2b-256 c19372abf504aa70036b934c2b951e38b11ba13c9cde074b65eaa9d4caddf1aa

See more details on using hashes here.

File details

Details for the file trzsz_iterm2-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: trzsz_iterm2-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for trzsz_iterm2-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8eb384fd58e17b660c1880c6c9e730288e7d166cf815e06739d696e05491519b
MD5 46727d8b9c85b0aaa29e30ce61ebd87b
BLAKE2b-256 fb6ed2f8646a539ca1bd7cb64e892c991154c1ca5b9e890ee6439872a4b5b633

See more details on using hashes here.

File details

Details for the file trzsz_iterm2-0.1.3-py2.7.egg.

File metadata

  • Download URL: trzsz_iterm2-0.1.3-py2.7.egg
  • Upload date:
  • Size: 11.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for trzsz_iterm2-0.1.3-py2.7.egg
Algorithm Hash digest
SHA256 0dc49a0aaefd3bd3f4c24fb7f26a3e44081f2597d769b16e8e0d2f4d03ea1220
MD5 17fdd0498f207841ecca6def113a4d70
BLAKE2b-256 c2ba68cee9c7c64b27e9d5916f358d3b1313f8a6be05923dee1e22402f28860e

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