Skip to main content

Asynchronous tus (tus.io) client library

Project description

Asynchronous tus client library

Actions Status codecov Documentation Status

aiotus implements the client side of the tus protocol.

Features

Usage

import aiotus

creation_url = "http://example.com/files"

metadata = {
    "Filename": "image.jpeg".encode(),
    "Content-Type": "image/jpeg".encode()
}

# Upload a file to a tus server.
with open("image.jpeg", "rb") as f:
    location = await aiotus.upload(creation_url, f, metadata)
    # 'location' is the URL where the file was uploaded to.

# Read back the metadata from the server.
metadata = aiotus.metadata(location)

Requirements

Installation

Install aiotus from PyPi:

pip install aiotus

Development versions can be installed from TestPyPi:

pip install --index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple aiotus

License

aiotus is licensed under the Apache 2 license.

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

aiotus-0.1.2.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiotus-0.1.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiotus-0.1.2.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for aiotus-0.1.2.tar.gz
Algorithm Hash digest
SHA256 be8dc646ba32c961550727d452c617b4de70c327d493d8529773f3691aa0647f
MD5 f8246e2e9854b033d2db5fe5d1482b8f
BLAKE2b-256 501e95f1b3a06334cc98029eb9cc039bda77ad417b040e31f72c11a871c194c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiotus-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for aiotus-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1aa31b3b4f9173523064ec8a079cbc8e1f85c61004305e2e76916989af75ae41
MD5 f293ab0c1923d0419ba341a3c0966776
BLAKE2b-256 6a7572498c1bde2fba4ba15dbcc9ea67a11e138094c001888a5207e699285415

See more details on using hashes here.

Supported by

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