Skip to content

v0.3.0

Choose a tag to compare

@MWals MWals released this 31 Jan 21:43
· 25 commits to main since this release

What's New

Added

  • New upload() method for uploading documents and images to weclapp entities
    • Automatic content type inference from filename extension
    • Optional explicit content type override with mismatch warning
    • Follows polymorphic pattern with id and action parameters
  • New download() method as a convenience wrapper for binary downloads
    • Defaults to download action when only id is provided
    • Supports custom actions like downloadLatestSalesInvoicePdf
  • MIME_TYPES dictionary with 37 common file type mappings
  • infer_content_type() helper function for content type inference
  • Extended binary response handling for images, audio, video, and archives
  • New example script examples/upload_document.py
  • Comprehensive unit tests for upload/download functionality
  • Library design patterns documented in README

Changed

  • Updated README with Document & Image Uploads section
  • Updated README with Binary Downloads section
  • Updated README with Library Design Patterns section
  • Exported MIME_TYPES and infer_content_type from package