Understand the Attachments module structure
mainThe attachments package is organized into several functional areas:
- Public API:
src/attachments/__init__.pyexports the main entry points. - Core Logic:
core.pyhandles the mainatt()function and routing;_artifacts.pymanages the returned artifact containers. - Configuration & Dependencies:
config.pyfor global settings,deps.pyfor dependency detection, and_options.pyfor DSL option schemas. - Input Sources: The
_sources/directory handles where files come from (local files, ZIP/TAR archives, HTTP(S) downloads, and GitHub repositories). - Processors: The
_processors/directory contains specialized logic for different file formats (PDF, Excel, Word, HTML, Images, Audio, etc.). - Remote Services:
service.pyis the client for remote APIs, andserver.pyprovides a self-hosted HTTP/WSGI server.