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", "Content-Type": "image/jpeg" } with open("image.jpeg", "rb") as f: location = await aiotus.upload(creation_url, f, metadata) # 'location' contains the URL where the file was uploaded to.
Requirements
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size aiotus-0.1.0-py3-none-any.whl (9.7 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size aiotus-0.1.0.tar.gz (4.8 kB) | File type Source | Python version None | Upload date | Hashes View |