Skip to main content

tus.io protocol implementation for aiohttp.web applications

Project description

CI Workflow pre-commit Latest Version Python versions BSD License Documentation

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

  • Latest documentation on Read The Docs

  • 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",
)

Chunk Size

Please, make sure to configure client_max_size for aiohttp.web Application and supply proper chunkSize for Uppy.io or other tus.io client.

Documentation

Examples

examples/ directory contains several examples, which illustrate how to use aiohttp-tus with some tus.io clients, such as tus.py and Uppy.io.

Project details


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.0rc1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

aiohttp_tus-1.0.0rc1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file aiohttp-tus-1.0.0rc1.tar.gz.

File metadata

  • Download URL: aiohttp-tus-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for aiohttp-tus-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 923fd46effbddda31bc4785825e6bbbea4451383fc61b22cf336d3ebd383122a
MD5 26d3106cc73350b96cd2815f4c64ee33
BLAKE2b-256 9d9c8e5c7447964279a41b79d78d3a9b893d84d78e96f20aa0bf922776d920fb

See more details on using hashes here.

File details

Details for the file aiohttp_tus-1.0.0rc1-py3-none-any.whl.

File metadata

  • Download URL: aiohttp_tus-1.0.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for aiohttp_tus-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c8435dacb8558bfc80fcf1d40084f23a37101589b52a10825351bb78ac4ab43
MD5 c438373140818de9670e550fed7bd8b9
BLAKE2b-256 ecd2c4c79671c295ba457c6ab0496707718e8b89992e5c739ef36124a8f63d80

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page