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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for backend.ai-aiotusclient-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe287369fab91f18d311af40b77ca4e0d10ba921e3badf635b68efeb716f00f4 |
|
MD5 | dd8621f5a33b05ba95f7489c2e9f37bd |
|
BLAKE2b-256 | c6f5c891708cf97044c59b1a7484b9ba08f85706ad9a03327b0531078c4b112a |
Close
Hashes for backend.ai_aiotusclient-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaef31f7559f67fa775b02b7142a6bf977f893eedcf1b8e9e14a06fc789a95d1 |
|
MD5 | 42f13480188848801cca2c2dca623526 |
|
BLAKE2b-256 | 515a2ed2100597fc6daffcd21ea05cfffc46dcbae29919aa7b051f30eb18d973 |