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.
aiotusclientclient: The client instance class which communicates between Backend.AI Managerbaseuploaderanduploader- Responsible for chunking the file and asynchronously uploading to tus server
request- Handles the uploading request
- Python 3.7 or higher with pyenv and pyenv-virtualenv (optional but recommneded)
First, prepare the source clone of this agent:
# git clone https://github.com/lablup/aiotusclientFrom now on, let's assume all shell commands are executed inside the virtualenv. And we located in backend.ai root directory.
Now install dependencies:
# pip install -U aiotusclientWhen done, import into your code the aiotusclient
from aiotusclient import client
tus_client = client.TusClient(session_create_url, session_upload_url, rqst.headers, params)This library was forked from tus-py-client and customized in order to facilitate asynchronous communication with our TUS server.