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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75f3bd46455e7f221794b9d224105e3d7595e653ce2a73270dcc076ec72f42e7
|
|
| MD5 |
111f956c4c9679e36afe73a19112962b
|
|
| BLAKE2b-256 |
b7c1c60f4296cc468478c3b325a066e8b26553dd5c867e2383f5df636604346d
|
Provenance
The following attestation bundles were made for aiotus-1.1.0.tar.gz:
Publisher:
ci.yml on JenSte/aiotus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiotus-1.1.0.tar.gz -
Subject digest:
75f3bd46455e7f221794b9d224105e3d7595e653ce2a73270dcc076ec72f42e7 - Sigstore transparency entry: 622402390
- Sigstore integration time:
-
Permalink:
JenSte/aiotus@c5207137b33629a12e99d5f3d8097288fd3e4857 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/JenSte
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@c5207137b33629a12e99d5f3d8097288fd3e4857 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff473aabb50159e847b99490183485f5f50a033799cbbc260da1f739e6542e6e
|
|
| MD5 |
a345219b44eb0335be4391cff985361d
|
|
| BLAKE2b-256 |
555ff9d88788b3bf607ff40c0f414422b60ecbe7dee5bcd9a01bd512e16c756d
|
Provenance
The following attestation bundles were made for aiotus-1.1.0-py3-none-any.whl:
Publisher:
ci.yml on JenSte/aiotus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiotus-1.1.0-py3-none-any.whl -
Subject digest:
ff473aabb50159e847b99490183485f5f50a033799cbbc260da1f739e6542e6e - Sigstore transparency entry: 622402395
- Sigstore integration time:
-
Permalink:
JenSte/aiotus@c5207137b33629a12e99d5f3d8097288fd3e4857 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/JenSte
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@c5207137b33629a12e99d5f3d8097288fd3e4857 -
Trigger Event:
release
-
Statement type: