Skip to content

v0.0.4

Choose a tag to compare

@injaeryou injaeryou released this 01 Apr 10:19

New Features

  • Server Hooks: Added event hook system for request interception and upload lifecycle
    • on_incoming_request: Gate requests before processing (e.g., auth, rate limiting). Raise TusHookError to reject.
    • on_upload_create: Validate or replace metadata before upload creation. Raise TusHookError to reject.
    • on_upload_complete: React after upload finishes (e.g., post-processing, notifications). Exceptions logged only.
    • on_upload_terminate: React after upload deletion (e.g., cleanup). Exceptions logged only.
    • New TusHookError(status_code, body) exception for rejecting requests with custom status codes
  • S3 Storage Backend: Added S3Storage using S3 multipart upload API with buffer-and-flush strategy
    • Install with pip install resumable-upload[s3]
  • GCS Storage Backend: Added GCSStorage using Google Cloud Storage compose API with hierarchical composition for large uploads
    • Install with pip install resumable-upload[gcs]
  • Azure Storage Backend: Added AzureBlobStorage using Azure Block Blobs with staged blocks
    • Install with pip install resumable-upload[azure]
  • All three cloud backends implement the Storage ABC as drop-in replacements for SQLiteStorage
  • Install all cloud backends at once with pip install resumable-upload[all-storage]

Documentation

  • Added cloud storage backends documentation with parameters, usage examples, and installation instructions
  • Added server hooks documentation with hook table and code examples
  • Added TusHookError to exceptions reference

CI

  • Split docs workflow into separate build and deploy jobs

Full Changelog: v0.0.3...v0.0.4