Skip to content

v0.0.2

Choose a tag to compare

@injaeryou injaeryou released this 25 Nov 04:52

Summary

This release includes code quality improvements, enhanced error handling, and documentation updates.

Key Changes

Code Quality

  • Moved imports to top of files (time, base64, binascii, URLError)
  • Improved error handling with specific exception types
  • Added safe handling for edge cases in retry logic

Statistics Tracking

  • Centralized stats calculation logic
  • Improved consistency of chunk completion tracking

Documentation

  • Updated README examples to match current API
  • Fixed progress_callback signature documentation (now uses UploadStats)
  • Added missing method documentation

Testing

  • Improved tox configuration for better compatibility
  • Fixed pytest execution in tox environments

Migration Guide

If migrating from development versions:

  1. Progress callbacks now receive UploadStats object:

    # Update your callback
    def progress(stats: UploadStats):
        print(f"{stats.progress_percent:.1f}%")
  2. Retry functionality is now built into TusClient:

    client = TusClient(url, max_retries=3)  # retry enabled by default

Full Changelog: v0.0.1...v0.0.2