tus.io-compatible upload client library for Python asyncio
Project description
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 Managerbaseuploader
anduploader
- 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 and pyenv-virtualenv (optional but recommneded)
Installation Process
First, prepare the source clone of this agent:
# 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:
# pip install -U aiotusclient
When done, import into your code the aiotusclient
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 and customized in order to facilitate asynchronous communication with our TUS server.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiotusclient-0.1.3.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for aiotusclient-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aff25bf3f8eb9fd5b13440b0cddb97f2757b12afaa2fca7794c1fc3070eef6e6 |
|
MD5 | 3ecba1ccbc0dc4256cee544cdf60d59a |
|
BLAKE2b-256 | ac193588bff6e8c8926abe85df4e96ac8463ebb4b0ef092788e27caf12a928b5 |