Skip to content

wyg1997/transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transfer

Transfer files simply in shell.

upload and download powered by https://transfer.sh/.

Install

1. from PyPI (Recommended)

pip install file-transfer-tools

2. clone and install

git clone https://github.com/wyg1997/transfer.git
cd transfer
pip install .

Usage

Run transfer -h in shell to see usage.

upload

transfer upload <directory/file>

upload with password

NOTE: You should install GnuPG firstly.

transfer upload -e <directory/file>
" or transfer upload --encrypt <directory/file>
" and type password

download

transfer download [-o <target_path>] <url>

download encrypted file

transfer download -d [-o <target_path>] <url>

paste

Paste the content of file to https://pastebin.mozilla.org/.

transfer paste [-h] [--expires {once,1h,1d,1w,21d}] [--type TYPE] target

NOTE: All supported TYPE see file type mapping.md. But you needn't assign the type in most situation, it will automatically choose a suitable type according file extension.