Skip to main content

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 Manager
    • baseuploader and uploader
      • Responsible for chunking the file and asynchronously uploading to tus server
    • request
      • Handles the uploading request

Installation

Prequisites

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.2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

aiotusclient-0.1.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file aiotusclient-0.1.2.tar.gz.

File metadata

  • Download URL: aiotusclient-0.1.2.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for aiotusclient-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b9b532dd92411af44f2978f53985b9475a70b84d08cdccd4fe254b85165abae4
MD5 7b69916abdaac61217f1730bc64d0570
BLAKE2b-256 c5150fc888ef8d62a03f4fd2ac496a60fa339935129f397eb2f816ac7e220d25

See more details on using hashes here.

File details

Details for the file aiotusclient-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: aiotusclient-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for aiotusclient-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4be12a1faee05e6370cb28b1fe5aedd60252856d5717082be9caec5a2f668645
MD5 91ea6bcdb69b55122971437fc22f9c06
BLAKE2b-256 7862da037f01f96c1f230c8d20355a165ac0c5714cefcc76d8bedbaf5ec1a318

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page