tuspyserver
A Python tus server implementation as a FastAPI router
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained (released 1 day ago), has low install friction, zero known vulnerabilities, and solves a real problem—resumable uploads are non-trivial to implement correctly. The single fastapi dependency is lightweight, and the API is straightforward. The only caveat is that the license is unclear in the metadata, so verify the actual license in the repository before using in a commercial or copyleft context.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python>=3.8 and fastapi>=0.110.
- CORS headers must be exposed for chunked uploads to work correctly.
- Low friction: pure Python wheel with a single runtime dependency on fastapi>=0.110.
License · maintenance · safety
(unclear)
last release 2026-08-13 (1 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 509,045 downloads/mo, #6,273 on PyPI
Alternatives
Verify before relying
pip install tuspyserver
from tuspyserver import create_tus_router
from fastapi import FastAPI
app = FastAPI()
app.include_router(
create_tus_router(
files_dir="./uploads",
days_to_keep=5,
)
)- Whether the S3 storage backend (boto3 extra) is production-ready and how it differs from local filesystem storage.
- Performance characteristics under high concurrency or with very large files.
- Whether the default 5-day retention policy is configurable per upload or only globally.
What it is and what it does
tuspyserver is a FastAPI router that adds resumable file upload capability to your application via the tus protocol. It handles the complexity of chunked uploads—allowing clients to pause and resume transfers—while managing metadata, expiration, and cleanup automatically. The router mounts directly into a FastAPI app and requires only fastapi>=0.110 and Python>=3.8.
You can customize behavior through optional hooks: validate uploads before they start (pre-create hook), run post-processing after completion (on_upload_complete), or inject dependencies to access your own services like databases or authentication. By default it stores files on the local filesystem, but you can swap in an S3 backend via the s3 extra. The package exposes a full HTTP API with upload, download, HEAD, DELETE, and OPTIONS endpoints, and handles the TUS protocol headers needed for resumable transfers.
Use it for
- Building a web app where users upload large files and need to resume if their connection drops.
- Validating file metadata or user permissions before accepting an upload via the pre-create hook.
- Logging completed uploads or triggering post-processing with the completion hook.
- Storing uploads directly to S3 instead of local disk to avoid coupling to a network filesystem.
- Implementing per-user upload quotas or directory routing via dependency injection.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained (released 1 day ago), has low install friction, zero known vulnerabilities, and solves a real problem—resumable uploads are non-trivial to implement correctly. The single fastapi dependency is lightweight, and the API is straightforward. The only caveat is that the license is unclear in the metadata, so verify the actual license in the repository before using in a commercial or copyleft context.
Install
tuspyserver on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency on fastapi>=0.110. Active maintenance with a release 1 day old.
Requires Python>=3.8 and fastapi>=0.110. CORS headers must be exposed for chunked uploads to work correctly.
Quickstart
pip install tuspyserver
from tuspyserver import create_tus_router
from fastapi import FastAPI
app = FastAPI()
app.include_router(
create_tus_router(
files_dir="./uploads",
days_to_keep=5,
)
)
Verify before relying
- Whether the S3 storage backend (boto3 extra) is production-ready and how it differs from local filesystem storage.
- Performance characteristics under high concurrency or with very large files.
- Whether the default 5-day retention policy is configurable per upload or only globally.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagefastapi |
| Maintenance | Actively maintained 1 days since the last release |
| First released | |
| Downloads | 509,045 / month, #6,273 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: tuspyserver-4.4.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “chunked upload handler”
- tuspyserverA FastAPI router that implements the tus resumable upload protocol,…
- python-multipartParses multipart form data from HTTP requests using a streaming…
- streaming-form-dataParses multipart/form-data streams chunk-by-chunk without buffering…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also tuspy · google-resumable-media · fastapi-limiter · python-multipart · s3transfer · jupyter-ai-router · streaming-form-data · obstore · synapse-s3-storage-provider · fastapi-decorators