Skip to content

Latest commit

ย 

History

History
32 lines (22 loc) ยท 945 Bytes

File metadata and controls

32 lines (22 loc) ยท 945 Bytes

๐Ÿ“š BookFusion CLI Uploader (bf_uploader.py)

Upload your ebooks to BookFusion using their Calibre-style API โ€” no Calibre required.

This Python script replicates the behavior of the Calibre plugin, including:

  • S3-backed file upload
  • Digest computation for metadata and file
  • Finalization with Rails-style form submission

Works great for scripting, automation, and metadata-rich library management.


๐Ÿš€ Features

  • Upload .epub, .mobi, .azw3, .pdf files
  • Supports full metadata (authors, tags, series, language, ISBN, cover image, shelves, etc.)
  • Mimics Calibreโ€™s plugin upload digest
  • Supports API key from CLI, env var, or file
  • Verbose output for debugging

๐Ÿ”ง Installation & Environment

Requires:

  • Python 3.11+ (youโ€™re using uv and a venv)
  • requests module

Install dependencies into your global venv (or run via uv):

uv pip install requests