TuSanic is a tus.io server-side implementation for sanic
tus is resumable uploads protocol. visit tus.io for more information
The project code is based on the code written by @matthoskins1980
pip3 install TuSanic
orgit clone https://github.com/avi-av/TuSanic && cd TuSanic
python3 setup.py install
from sanic import Sanic
from TuSanic import Tus
app = Sanic('tusanic_demo')
tus = Tus(app)
@tus.upload_file_handler
def file_upload(path, filename):
print(f"save {filename} to {path}")
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000, debug=True)
- python (&cli) github.com/cenkalti/tus.py
- JS (Browser) uppy.io
MIT