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.3.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.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trans-client-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 590660db4f759c31debaed63f74105fa266878bb5fc2968f2d9d7ba2d808e36b
MD5 9a5a85e13470ca3b51d5ae3ad5f90a6b
BLAKE2b-256 a8a77a6e3e71eda5e24df7ddc8d913cb538de8edb816f16ac86af67e2f0a1b9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trans_client-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 61c70f9688a293828d7423e984a232fa2d54cf78ae8d83d8f898452f4a37c97f
MD5 5fc0f657864a07d4eb14603a7dd82e3f
BLAKE2b-256 ced8911ee60b03bee9b5b829be9cc0ddb807b94c144155ce19ebf2f91d771033

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