Asynchronous tus (tus.io) client library
Project description
Asynchronous tus client library
aiotus implements the client side of the tus protocol.
Features
- Implements the core protocol as well as the creation extension.
- Built-in retry support in case of communication errors.
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
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
aiotus-0.1.2.tar.gz
(19.0 kB
view details)
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
aiotus-0.1.2-py3-none-any.whl
(12.7 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be8dc646ba32c961550727d452c617b4de70c327d493d8529773f3691aa0647f
|
|
| MD5 |
f8246e2e9854b033d2db5fe5d1482b8f
|
|
| BLAKE2b-256 |
501e95f1b3a06334cc98029eb9cc039bda77ad417b040e31f72c11a871c194c1
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1aa31b3b4f9173523064ec8a079cbc8e1f85c61004305e2e76916989af75ae41
|
|
| MD5 |
f293ab0c1923d0419ba341a3c0966776
|
|
| BLAKE2b-256 |
6a7572498c1bde2fba4ba15dbcc9ea67a11e138094c001888a5207e699285415
|