Skip to main content

Asynchronous tus (tus.io) client library

Project description

aiotus - Asynchronous tus client library

aiotus implements the client-side of the tus protocol.

Features

  • Implements the core protocol as well as the creation and concatenation extensions.
  • Built-in retry support in case of communication errors.
  • Extensive test bench, including tests against the reference tusd server.

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 = await 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

Documentation

The documentation can be found at aiotus.readthedocs.io.

License

aiotus is licensed under the Apache 2.0 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-1.1.0.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

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

aiotus-1.1.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiotus-1.1.0.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aiotus-1.1.0.tar.gz
Algorithm Hash digest
SHA256 75f3bd46455e7f221794b9d224105e3d7595e653ce2a73270dcc076ec72f42e7
MD5 111f956c4c9679e36afe73a19112962b
BLAKE2b-256 b7c1c60f4296cc468478c3b325a066e8b26553dd5c867e2383f5df636604346d

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiotus-1.1.0.tar.gz:

Publisher: ci.yml on JenSte/aiotus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: aiotus-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aiotus-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff473aabb50159e847b99490183485f5f50a033799cbbc260da1f739e6542e6e
MD5 a345219b44eb0335be4391cff985361d
BLAKE2b-256 555ff9d88788b3bf607ff40c0f414422b60ecbe7dee5bcd9a01bd512e16c756d

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiotus-1.1.0-py3-none-any.whl:

Publisher: ci.yml on JenSte/aiotus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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