Giter Club home page Giter Club logo

py-transfer.sh's Introduction

py-transfer.sh

https://transfer.sh/

transfer.sh (https://transfer.sh/ ) is a service that you can share your files. You can upload your files by drag and drop on that web site. Now you can upload and download files by using pt.py in your shell.

transfer.sh wrapper

Install

    $ git clone https://github.com/daineseh/py-transfer.sh
    $ cd py-transfer.sh
    $ python setup.py install

usage: pt.py [-h] [-u FILE [FILE ...]] [-d URL [URL ...]] [-w DIR]

#optional arguments: -h, --help show this help message and exit -u FILE [FILE ...] specify the path of file(s) you want to upload. -d URL [URL ...] specify one or more URL you want to download. -w DIR specify a directory to download. The default directory is the working directory.

Example1 : Upload a file

    # Upload a file to https://transfer.sh
    $./pt.py -u /home/something/file1

    # and output a link for download:
    https://transfer.sh/19Xwp/file1

Example2 : Upload more files

    # Upload multiple files to https://transfer.sh
    $./pt.py -u /home/something/file1  /home/something/file2  /home/something/file3

    # and output some link for downloads:
    https://transfer.sh/19Xwp/file1
    https://transfer.sh/19Xwp/file2
    https://transfer.sh/19Xwp/file3

Example3 Download a file:

    # download a file from https://transfer.sh
    ./pt.py -d https://transfer.sh/19Xwp/file1
    
    # Print download information:
    Download ./file1 done.

Example4 : Download multiple files

    # download multiple files from https://transfer.sh
    ./pt.py -d https://transfer.sh/19Xwp/file1  https://transfer.sh/1fn4k/file2
    
    # Print downloads information:
    Download ./file1 done.
    Download ./file2 done.

Example5 : Specify the download directory

    # download multiple files and specify path from https://transfer.sh
    ./pt.py -d https://transfer.sh/19Xwp/file1  https://transfer.sh/1fn4k/file2 -w /home/user/
    
    # Print downloads information:
    Download /home/user/file1 done.
    Download /home/user/file2 done.

py-transfer.sh's People

Contributors

jminh avatar daineseh avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.