Code Monkey home page Code Monkey logo

putio-cli's Introduction

put.io client

This is a put.io client for the command line, written in Python.

Features

  • Browse your put.io storage
  • Download individual files
  • Recursively download a directory and its contents, reproducing the structure locally
  • Delete files/folders
  • Create directories
  • Add transfers from URL(s)
  • Resumable downloads

Installation

Set up the file ~/.config/putio-cli/config, with the following contents:

[api]
key=YOUR_API_KEY
secret=YOUR_API_SECRET

[download]
user=YOUR_PUTIO_USERNAME
password=YOUR_PUTIO_PASSWORD

The [download] section is optional, and is used only to retrieve files. If you do not download files using putio-cli, then you don't need to fill this section in.

Commands

The various subcommands are shown below:

  • putio-cli info displays information about your account, including available/total disk space and bandwidth
  • putio-cli add <url> [<url>...] will tell put.io to download from one or more URLs (either files or torrents)
  • putio-cli add accepts text containing one or more URLs on standard input, and instructs put.io to download them all
  • putio-cli ls <path> displays an ls-style directory listing of the given path
  • putio-cli geturl <file> displays the download URL for the given file
  • putio-cli get <file> downloads the file to the current directory
  • putio-cli get <dir> downloads the entire remote directory and all of its contents to a subfolder of the current directory
  • putio-cli mkdir <path> creates the given directory on put.io
  • putio-cli rm <path> deletes the given remote path WITHOUT CONFIRMATION.

Examples

# Download a single file to the current directory
putio-cli get '/Films/My.Favourite.Film.avi'

# Download an entire directory, creating "Some Show" and everything below
# it inside the current directory
putio-cli get '/TV/Some Show'
# ... later ...
ls './Some Show/'
# your files and folders

Bugs and Limitations

  • No support for moving/renaming files or folders (yet)
  • Not very user-friendly to set up
  • When resuming a file download, it doesn't tell you how much has been completed already -- just how much is left
  • Only supports downloading to the current directory
  • Fairly poor error handling

Author

Dave Ingram

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.