{ "info": { "author": "Ifedapo Olarewaju", "author_email": "ifedapoolarewaju@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Communications :: File Sharing", "Topic :: Internet :: File Transfer Protocol (FTP)", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# tus-py-client [![Build Status](https://travis-ci.org/tus/tus-py-client.svg?branch=master)](https://travis-ci.org/tus/tus-py-client)\n\n> **tus** is a protocol based on HTTP for *resumable file uploads*. Resumable\n> means that an upload can be interrupted at any moment and can be resumed without\n> re-uploading the previous data again. An interruption may happen willingly, if\n> the user wants to pause, or by accident in case of a network issue or server\n> outage.\n\n**tus-py-client** is a Python client for uploading files using the *tus* protocol to any remote server supporting it.\n\n## Documentation\n\nSee documentation here: http://tus-py-client.readthedocs.io/en/latest/\n\n## Get started\n\n```bash\npip install tuspy\n```\n\nNow you are ready to use the api.\n\n``` python\nfrom tusclient import client\n\n# Set Authorization headers if it is required\n# by the tus server.\nmy_client = client.TusClient('http://master.tus.io/files/',\n headers={'Authorization': 'Basic xxyyZZAAbbCC='})\n\n# Set more headers.\nmy_client.set_headers({'HEADER_NAME': 'HEADER_VALUE'})\n\nuploader = my_client.uploader('path/to/file.ext', chunk_size=200)\n\n# A file stream may also be passed in place of a file path.\nfs = open('path/to/file.ext')\nuploader = my_client.uploader(file_stream=fs, chunk_size=200)\n\n# Upload a chunk i.e 200 bytes.\nuploader.upload_chunk()\n\n# Uploads the entire file.\n# This uploads chunk by chunk.\nuploader.upload()\n\n# you could increase the chunk size to reduce the\n# number of upload_chunk cycles.\nuploader.chunk_size = 800\nuploader.upload()\n\n# Continue uploading chunks till total chunks uploaded reaches 1000 bytes.\nuploader.upload(stop_at=1000)\n```\n\nIf the upload url is known and the client headers are not required, uploaders can also be used standalone.\n\n``` python\nfrom tusclient.uploader import Uploader\n\nmy_uploader = Uploader('path/to/file.ext',\n url='http://master.tus.io/files/abcdef123456',\n chunk_size=200)\n```\n\n## License\n\nMIT\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/tus/tus-py-client/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "tuspy", "package_url": "https://pypi.org/project/tuspy/", "platform": "any", "project_url": "https://pypi.org/project/tuspy/", "project_urls": { "Homepage": "http://github.com/tus/tus-py-client/" }, "release_url": "https://pypi.org/project/tuspy/0.2.4/", "requires_dist": null, "requires_python": "", "summary": "A Python client for the tus resumable upload protocol -> http://tus.io", "version": "0.2.4" }, "last_serial": 4693987, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "27ef21b15a91c86b274b8c738f3ae8a0", "sha256": "547bfa6ba3ac0ebcc630f7d88413e3d0ce8fce9a394a92bb40e8627ca8f11ee8" }, "downloads": -1, "filename": "tuspy-0.1.tar.gz", "has_sig": false, "md5_digest": "27ef21b15a91c86b274b8c738f3ae8a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5703, "upload_time": "2017-07-10T20:14:19", "url": "https://files.pythonhosted.org/packages/2e/32/57f01a2fb938df1811a7e8266d1f6751dd227b5b2f31ed30287993a7e9ae/tuspy-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c0be4f2d98f144042064c1373d45d5a1", "sha256": "525280a44c5847014bd6ccca94770788009befd8b2de717185652dc8633f1304" }, "downloads": -1, "filename": "tuspy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c0be4f2d98f144042064c1373d45d5a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6634, "upload_time": "2017-10-12T14:48:22", "url": "https://files.pythonhosted.org/packages/b0/5a/f804e78f6bb1f60e13750983c029a86b30ee38f9ffc447cbb5034a7c9f27/tuspy-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "ad364d1fb7ebe092261e94f46ca15c61", "sha256": "2bb02d8916328dcbdcd8739655e4bd767318faf8c91e6bac08f3ffb7cb8f7377" }, "downloads": -1, "filename": "tuspy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "ad364d1fb7ebe092261e94f46ca15c61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6682, "upload_time": "2017-10-27T21:49:09", "url": "https://files.pythonhosted.org/packages/93/11/69fe3fc41f383b14cc803d0f13f613c59e538578c04fcbad75c37e318af6/tuspy-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "ba893ef82e58484850b353b592c5747c", "sha256": "d0c51a48c2849f747359124b4c75a26b14c12e86aad16b485d4773150f92b7f4" }, "downloads": -1, "filename": "tuspy-0.1.3.tar.gz", "has_sig": false, "md5_digest": "ba893ef82e58484850b353b592c5747c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6886, "upload_time": "2017-11-15T16:19:57", "url": "https://files.pythonhosted.org/packages/d9/67/133379b45519da241e996c9e09925250a333674340c868a8a020dad47057/tuspy-0.1.3.tar.gz" } ], "0.1a1": [ { "comment_text": "", "digests": { "md5": "cdc4db34070fa59ca993b090bd19557c", "sha256": "f119098ab13c9f2abf83f12e12f277423f9f6480cf62bec4fd5d1aaa1dc46cab" }, "downloads": -1, "filename": "tuspy-0.1a1.tar.gz", "has_sig": false, "md5_digest": "cdc4db34070fa59ca993b090bd19557c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4403, "upload_time": "2016-10-13T07:04:29", "url": "https://files.pythonhosted.org/packages/5e/51/bc39da80c493882bc2dd6cdd6957ff50234d34c38317ea051d1085c27d66/tuspy-0.1a1.tar.gz" } ], "0.1a2": [ { "comment_text": "", "digests": { "md5": "467de9c8559e5afcfab596217e496f06", "sha256": "049de70f9f40684d7a6a9dbe7ef942184968070ab9bde039af94892c5dcb4782" }, "downloads": -1, "filename": "tuspy-0.1a2.tar.gz", "has_sig": false, "md5_digest": "467de9c8559e5afcfab596217e496f06", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5050, "upload_time": "2016-10-31T16:40:40", "url": "https://files.pythonhosted.org/packages/ac/67/b047e9a0c474126ce233db7de2abcd899a5f88bf46f8e991a05dd3070e90/tuspy-0.1a2.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "8b626fb1f942ae5a4ee1744da19b9309", "sha256": "7ba90747e48522f6d48cce0e822eb95779b110e78fb2b8c8fe1967381d53030b" }, "downloads": -1, "filename": "tuspy-0.2.tar.gz", "has_sig": false, "md5_digest": "8b626fb1f942ae5a4ee1744da19b9309", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7891, "upload_time": "2017-12-02T07:20:02", "url": "https://files.pythonhosted.org/packages/7f/81/c7dd84abfd525fdf0d5f8c0a9130944a9fe20c547bf116efe5208561011a/tuspy-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "4d86596937afb2515b94773fc0540719", "sha256": "fd51ceeddaf35db176d27bce5e1958f93edcf12fbed0473f3bf8132e8e19d906" }, "downloads": -1, "filename": "tuspy-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4d86596937afb2515b94773fc0540719", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9726, "upload_time": "2017-12-02T08:30:23", "url": "https://files.pythonhosted.org/packages/ce/23/f8cdb6ec7a3c43b8913843279bc4a61736578a1d0f950c3dd6a94f13fc0e/tuspy-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "1deab8a27b5aa257a3e4f9682ab36a97", "sha256": "cf55b742cf6e662db59ffd9a84aa6813eefd922396dc0d6e2928352e244a04d9" }, "downloads": -1, "filename": "tuspy-0.2.2.tar.gz", "has_sig": false, "md5_digest": "1deab8a27b5aa257a3e4f9682ab36a97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8494, "upload_time": "2018-03-19T01:44:11", "url": "https://files.pythonhosted.org/packages/3c/66/6767d11ba9173c055d4fbaed3c2de6693b31d765096198e683118602e283/tuspy-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "c42e0336a9664c40c90b388ddb7a724c", "sha256": "c3780833bcb1e9c4efa22a432221cb9850a298235ab12338ecfe2ac9f04e734d" }, "downloads": -1, "filename": "tuspy-0.2.3.tar.gz", "has_sig": false, "md5_digest": "c42e0336a9664c40c90b388ddb7a724c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8808, "upload_time": "2018-08-12T22:32:12", "url": "https://files.pythonhosted.org/packages/d9/45/e1a842e9d0994830eca1688ae235978668ea19fd9a0a79720b2d3be1b248/tuspy-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "3366b202914e1fe5a3ffa5ccce9398a9", "sha256": "49b674003bbdb0e2ee3fc949490f85ca381929f712f17a7a56404ff6217e96e8" }, "downloads": -1, "filename": "tuspy-0.2.4.tar.gz", "has_sig": false, "md5_digest": "3366b202914e1fe5a3ffa5ccce9398a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9112, "upload_time": "2019-01-14T12:44:36", "url": "https://files.pythonhosted.org/packages/68/9c/21dedeb7e98a1d905a529a1ba044482510e5954bb70bd4392984e44b5785/tuspy-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3366b202914e1fe5a3ffa5ccce9398a9", "sha256": "49b674003bbdb0e2ee3fc949490f85ca381929f712f17a7a56404ff6217e96e8" }, "downloads": -1, "filename": "tuspy-0.2.4.tar.gz", "has_sig": false, "md5_digest": "3366b202914e1fe5a3ffa5ccce9398a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9112, "upload_time": "2019-01-14T12:44:36", "url": "https://files.pythonhosted.org/packages/68/9c/21dedeb7e98a1d905a529a1ba044482510e5954bb70bd4392984e44b5785/tuspy-0.2.4.tar.gz" } ] }