Skip to main content

A data exchange script based on ssh

Project description

trans client

Introduction

​ A tool based on scp for quickly transmitting data on a server. If you

do not want to enter the account password during the transmission process,

please configure the ssh key in advance. This is a client-side script. If

you have set up your own LAN server as a backup server or data transfer

station, you can install the trans-server script on the server side.

Install

pip install trans-client

Usage

help

tcl help

config

tcl config

user: remote user ip: remote host ip path: the base path that you want to use

login

tcl login

ssh user@ip

Trans

some examples:

  • if you config like this

    user: jack
    ip:   192.168.3.2
    path: /home/jack
    
  • get file/dir from remote server

    tcl --get /home/local/dir remote_dir or tcl -g /home/local/dir remote_dir

    scp -r jack@192.168.3.2:/home/jcak/remote_dir /home/local/dir

  • upload file/dir to remote server tcl --put /home/local/dir remote_dir or tcl -p /home/local/dir remote_dir

    scp -r /home/local/dir jack@192.168.3.2:/home/jcak/remote_dir

clean

clean the ~/.trans.cfg

tcl clean

Contact me

zhewei@stu.xidian.edu.cn

License

trans-client is provided under the MIT LICENSE

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

trans-client-1.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

trans_client-1.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file trans-client-1.0.2.tar.gz.

File metadata

  • Download URL: trans-client-1.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for trans-client-1.0.2.tar.gz
Algorithm Hash digest
SHA256 787be6dfc141c9264fbcdaada0a7cc646c3abb1d51ee00128c691fa9dc81eb2a
MD5 4d5c1eccc3f763c7ded232a610c9bf69
BLAKE2b-256 0fdac59959ddc4b7413f8de9ef5cf1ea473599bfd55286938d44b9a3cb3abbf3

See more details on using hashes here.

File details

Details for the file trans_client-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: trans_client-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for trans_client-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c07ade6ed639fc0e0cead97dcce542cb3869582bd6bcebf4e38df19b426228f8
MD5 3baa5493e1480457bfc573c99d2a9284
BLAKE2b-256 bd946ab0813cdd64ebd3c5960ffb2bebf168327ac645f630f2aa5a70ff21e467

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