Skip to main content

Python client for put.io API v2

Project description

Simple wrapper for Put.io API v2.

Installing

putio.py is available on PyPI.

$ pip install putio.py

Usage

import putio

helper = putio.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 = putio.Client(OAUTH_TOKEN)

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

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

# read the code for other methods.

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

putio.py-3.2.0.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file putio.py-3.2.0.tar.gz.

File metadata

  • Download URL: putio.py-3.2.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for putio.py-3.2.0.tar.gz
Algorithm Hash digest
SHA256 5813b9554f8dee6e6410ba15cd7b415030f499047d4fa92cc4236d986163e9f2
MD5 852d55f139bc31f1d61ac50f04d4a87d
BLAKE2b-256 2fe77444c393956bc794e72e223de6e457fa39dcf3d492144456883918cf3a2a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page