A python wrapper for put.io APIv2
Python
Switch branches/tags
Nothing to show
Latest commit 6c13b45 Apr 29, 2017 @cenkalti fix for python 3
Permalink
Failed to load latest commit information.
.gitignore Expand tests to cover other scenarios Apr 1, 2016
LICENSE add license, fix #1 Jun 4, 2013
README.rst update readme Apr 29, 2017
putiopy.py fix for python 3 Apr 29, 2017
setup.cfg fix formatting Sep 9, 2016
setup.py fix for python 3 Apr 29, 2017
tests.py rename module name as putiopy Jan 12, 2017

README.rst

putio.py

Simple wrapper for Put.io API v2.

Installing

putio.py is available on PyPI.

$ pip install putio.py

Usage

import putiopy

helper = putiopy.AuthHelper(CLIENT_ID, CLIENT_SECRET, \
                            CALLBACK_URL, type='token')

# this will open a browser to authetication url
# after authenticating you will find the oauth_token in the address bar
helper.open_authentication_url()

client = putiopy.Client(OAUTH_TOKEN)

# list files
files = client.File.list()

# add a new transfer
transfer = client.Transfer.add_url('http://example.com/good.torrent')

# read the code for other methods.