Metadata-Version: 2.2
Name: putio.py
Version: 8.8.0
Summary: Python client for put.io API v2
Author-email: Cenk Altı <cenkalti@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/cenkalti/putio.py
Project-URL: Issues, https://github.com/cenkalti/putio.py/issues
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
Requires-Dist: requests
Requires-Dist: tus.py

putio.py
========

Simple wrapper for `Put.io API v2 <https://api.put.io/v2/docs>`_.


Installing
----------

putio.py is available on PyPI.

.. code-block:: bash

    $ pip install putio.py


Usage
-----

.. code-block:: python

    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.
