Metadata-Version: 2.0
Name: tusclient
Version: 0.2.0
Summary: python client for tus protocol 1.0.0
Home-page: https://github.com/everydo/tusclient
Author: easydo.cn
Author-email: info@easydo.cn
License: MIT
Keywords: tus client
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: requests

=========
tusclient
=========


python client for tus protocol 1.0.0 of the `tus resumable upload standard`_.

.. _tus resumable upload standard: http://tus.io

install
-------

::

    pip install tusclient

arguments
---------

``fpath``
    ``str``, required, path of upload file

``upload_url``
    ``str``, required, url for the resumable upload service

``tmp_dir``
    ``str``, optional, directory to store temporary files, default ``/tmp/upload``

``upload_metadata``
    ``dict``, optional, Tus ``Upload-Metadata``, default ``None``


example
-------

::

    from tusclient import TusClient

    tus = TusClient(fpath='upload_file.dat', upload_url='http://localhost/upload_resumable')
    tus.run()


