aiotus 0.1.13
pip install aiotus==0.1.13
Newer version available (1.0.0)
Released:
Asynchronous tus (tus.io) client library
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache-2.0)
- Author: Jens Steinhauser
- Requires: Python >=3.8
Classifiers
- Development Status
- License
- Operating System
- Programming Language
- Topic
- Typing
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 = 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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache-2.0)
- Author: Jens Steinhauser
- Requires: Python >=3.8
Classifiers
- Development Status
- License
- Operating System
- Programming Language
- Topic
- Typing
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
File details
Details for the file aiotus-0.1.13.tar.gz
.
File metadata
- Download URL: aiotus-0.1.13.tar.gz
- Upload date:
- Size: 29.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
581b17b512453f3899274b117b5f02d9de97c8db24eb7610d31c150be4675fb9
|
|
MD5 |
a039563f87799a60a33bfb7955c3bf7b
|
|
BLAKE2b-256 |
e4a98a0cf626d40a5a1d25f0baa0a1accec6df012af2999a8778f8d6c07e7c33
|
File details
Details for the file aiotus-0.1.13-py3-none-any.whl
.
File metadata
- Download URL: aiotus-0.1.13-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
cefb961ac6a5516743ffa99877e2cabc1ae2800d46a26dbda656433d1bcb9010
|
|
MD5 |
1212c36f68058a3e2c5bc56d272ebe80
|
|
BLAKE2b-256 |
f1ecfd67e69267b08d72bfb9c9dcfaa983e0228823197bef32161b437a4ac95d
|