# tus.io uploader for Python asyncio
aiotusclient is a fork of tus-py-client rewritten for Python asyncio and aiohttp.
It is used to communicate with storage proxies that handle large transfers for vfolder uploads and downloads.
## Package Structure
* `aiotusclient`
- `client`: The client instance class which communicates between Backend.AI Manager
- `baseuploader` and `uploader`
- Responsible for chunking the file and asynchronously uploading to tus server
- `request`
- Handles the uploading request
## Installation
### Prequisites
* Python 3.7 or higher with [pyenv](https://github.com/pyenv/pyenv)
and [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv) (optional but recommneded)
### Installation Process
First, prepare the source clone of this agent:
```console
# git clone https://github.com/lablup/aiotusclient
```
From now on, let's assume all shell commands are executed inside the virtualenv. And we located in backend.ai root directory.
Now install dependencies:
```console
# pip install -U aiotusclient
```
When done, import into your code the aiotusclient
```python
from aiotusclient import client
tus_client = client.TusClient(session_create_url, session_upload_url, rqst.headers, params)
```
### Reference
This library was forked from [tus-py-client](https://github.com/tus/tus-py-client) and customized in order to facilitate asynchronous communication with our TUS server.
Raw data
{
"_id": null,
"home_page": "https://github.com/lablup/aiotusclient",
"name": "aiotusclient",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Lablup Inc.",
"author_email": "sergey@lablup.com",
"download_url": "https://files.pythonhosted.org/packages/7c/9e/1a2fa86e00168a035ce532b1e595298b397eed6de9e757470f1e2bf53b8d/aiotusclient-0.1.4.tar.gz",
"platform": "",
"description": "# tus.io uploader for Python asyncio\naiotusclient is a fork of tus-py-client rewritten for Python asyncio and aiohttp.\nIt is used to communicate with storage proxies that handle large transfers for vfolder uploads and downloads.\n\n\n## Package Structure\n* `aiotusclient`\n - `client`: The client instance class which communicates between Backend.AI Manager\n - `baseuploader` and `uploader`\n - Responsible for chunking the file and asynchronously uploading to tus server\n - `request`\n - Handles the uploading request\n\n\n## Installation\n\n### Prequisites\n* Python 3.7 or higher with [pyenv](https://github.com/pyenv/pyenv)\nand [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv) (optional but recommneded)\n\n### Installation Process\n\nFirst, prepare the source clone of this agent:\n```console\n# git clone https://github.com/lablup/aiotusclient\n```\n\nFrom now on, let's assume all shell commands are executed inside the virtualenv. And we located in backend.ai root directory.\n\nNow install dependencies:\n```console\n# pip install -U aiotusclient\n```\n\n\nWhen done, import into your code the aiotusclient\n```python\nfrom aiotusclient import client\n\ntus_client = client.TusClient(session_create_url, session_upload_url, rqst.headers, params)\n```\n\n### Reference\nThis library was forked from [tus-py-client](https://github.com/tus/tus-py-client) and customized in order to facilitate asynchronous communication with our TUS server.\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "tus.io-compatible upload client library for Python asyncio",
"version": "0.1.4",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "3fb2a14dca770a9402794c9b77f44010",
"sha256": "69dad8a1bfb66c811a537014bda44e06188621df36e75566b97c4aaf373a389b"
},
"downloads": -1,
"filename": "aiotusclient-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3fb2a14dca770a9402794c9b77f44010",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 9988,
"upload_time": "2020-09-15T05:40:18",
"upload_time_iso_8601": "2020-09-15T05:40:18.212798Z",
"url": "https://files.pythonhosted.org/packages/7b/d2/004c9f673df74ff0455f381e898ad522b5fbc05a2b7b99420f1998702a58/aiotusclient-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "96a7897904daa146e4bb932533864e77",
"sha256": "4e23704420b5273b0c417c92a8bae605f90fc8f9364caa91a80f2586c7d8f952"
},
"downloads": -1,
"filename": "aiotusclient-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "96a7897904daa146e4bb932533864e77",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 8901,
"upload_time": "2020-09-15T05:40:19",
"upload_time_iso_8601": "2020-09-15T05:40:19.426257Z",
"url": "https://files.pythonhosted.org/packages/7c/9e/1a2fa86e00168a035ce532b1e595298b397eed6de9e757470f1e2bf53b8d/aiotusclient-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2020-09-15 05:40:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "lablup",
"github_project": "aiotusclient",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "aiotusclient"
}