- Notifications
You must be signed in to change notification settings - Fork1
Asynchronous tus (tus.io) client library
License
NotificationsYou must be signed in to change notification settings
JenSte/aiotus
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
aiotus
implements the client-side of thetus protocol.
- Implements thecore protocol aswell as thecreationandconcatenation extensions.
- Built-in retry support in case of communication errors.
- Extensive test bench, including tests against the referencetusd server.
importaiotuscreation_url="http://example.com/files"metadata= {"Filename":"image.jpeg".encode(),"Content-Type":"image/jpeg".encode()}# Upload a file to a tus server.withopen("image.jpeg","rb")asf:location=awaitaiotus.upload(creation_url,f,metadata)# 'location' is the URL where the file was uploaded to.# Read back the metadata from the server.metadata=awaitaiotus.metadata(location)
Installaiotus
fromPyPi:
pip install aiotus
Development versions can be installed fromTestPyPi:
pip install --index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple aiotus
The documentation can be found ataiotus.readthedocs.io.
aiotus
is licensed under the Apache 2.0 license.
About
Asynchronous tus (tus.io) client library