Skip to content
/ TuSanic Public

TUS (tus.io) protocol implementation for sanic

Notifications You must be signed in to change notification settings

avi-av/TuSanic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TuSanic

GitHub stars PyPI - License PyPI PyPI - Python Version PyPI - Wheel


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

Installation

  • pip3 install TuSanic or
  • git clone https://github.com/avi-av/TuSanic && cd TuSanic
  • python3 setup.py install

Usage

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)

clients for tus.io protocol

License

MIT

About

TUS (tus.io) protocol implementation for sanic

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages