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

Uploaded Python 3

File details

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

File metadata

  • Download URL: trans-client-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b76577c16c414e25b94917853a32d77542a70ce33b47b34d564bf37abaa8c3ce
MD5 7ff500614a8ddf14c26e4732c4454fb9
BLAKE2b-256 ba43bb17bfb4debbb678445a82a3114a0fd39246a17a1ca8f90dd9f34221be57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trans_client-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62c7a4ec1c4b2a5186047eaf5a038af6075bc897c971227c621358c955967cfc
MD5 e2a01b05207d485560a6e2a4657b1cc3
BLAKE2b-256 8470a5604e5258fc8f08198d8fa38266de2796fd62f85ca112a72bb835f8f212

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