tus.io protocol implementation for aiohttp.web applications
Project description
tus.io server implementation for aiohttp.web applications.
For uploading large files, please consider using aiotus (Python 3.7+) library instead.
Works on Python 3.6+
Works with aiohttp 3.5+
BSD licensed
Source, issues, and pull requests on GitHub
Quickstart
Code belows shows how to enable tus-compatible uploads on /uploads URL for aiohttp.web application. After upload, files will be available at ../uploads directory.
from pathlib import Path
from aiohttp import web
from aiohttp_tus import setup_tus
app = setup_tus(
web.Application(),
upload_url="/uploads",
upload_path=Path(__file__).parent.parent / "uploads",
)
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.
Source Distribution
aiohttp-tus-1.0.0a0.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for aiohttp_tus-1.0.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd32acf8d1553924c692248f5e018e8cf8eca1176c51cdf720734728bbc7e82d |
|
MD5 | 7a0990685a865baf697d1a8e1229194f |
|
BLAKE2b-256 | 65aef63a88d5ccf97b7e44dac08567811a8e81e1807df25c99d00539e7fc40ef |