tus.io-compatible upload client library for Python asyncio
Project description
Backend.AI aiotusclient
Backend.AI aiotusclient is an tus client to communicate with tus server to manage vfolders used in Backend.AI client and other projects.
Package Structure
ai.backend.aiotusclient
client
: The client instance class which communicates between Backend.AI Managerbaseuploader and uploader
- Responsible for chunking the file and asynchronously uploading to tus server
request
- Handles the uploading request
Installation
Prequisites
- Python 3.8 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.0.tar.gz
(9.8 kB
view hashes)
Built Distribution
Close
Hashes for aiotusclient-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95e7937b9ceaa161474901071d33e71f359f4bcb89f07b048002fb7ed825db29 |
|
MD5 | 338d32fc1d49a0c41ebd201a6c605ada |
|
BLAKE2b-256 | 9e8af21cc9532418fb4e2095a08ee4975aba091910d9c2fdb15f69cd7ce447d4 |