Skip to main content

tus.io protocol implementation for aiohttp.web applications

Project description

CI Workflow 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

  • 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


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

Uploaded Source

Built Distribution

aiohttp_tus-1.0.0b1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiohttp-tus-1.0.0b1.tar.gz
  • Upload date:
  • Size: 10.2 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.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for aiohttp-tus-1.0.0b1.tar.gz
Algorithm Hash digest
SHA256 8ffe0d5a27698f212ef583962bde59a4610fed27961ca220c5303ab9fdb312f0
MD5 6c53769049a75569cc8b3685cf889f1d
BLAKE2b-256 8004d9d247f0e77da10d91e48c94ace33d7e9af3d63f3029fc0e7d7263136d67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiohttp_tus-1.0.0b1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for aiohttp_tus-1.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 e5600b9c835c868490198973bea726869522aa75b5de72124a26791a89f2830a
MD5 b3979458421408633d38e640cea9d3f5
BLAKE2b-256 565b2fb0354dd445970acd3e8214f11f1abbf9c768160d0b19ef6922a12476f3

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