package
Version:
v0.8.3
Opens a new window with list of versions in this module.
Published: Jul 5, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ImageBase64 returns a data URL suitable for OpenAI-style vision APIs.
IsImage reports whether the filename or magic bytes look like a supported image.
Read extracts human-readable text from a file for agent context.
Supports UTF-8 text files and PDF documents (text layer only).
ReadBytes extracts text from raw file bytes using the filename hint for format detection.
Image holds raw image bytes for vision models.
ReadImage loads a supported image file for vision APIs.
ReadImageBytes parses image bytes using the filename extension as a hint.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.