jeevesagent.loader.excel
========================

.. py:module:: jeevesagent.loader.excel

.. autoapi-nested-parse::

   Excel (.xlsx / .xlsm) loader → markdown.

   Uses ``openpyxl`` (lazy import). Each sheet becomes a markdown
   section with the sheet name as an ``#`` heading and the cell grid
   as a markdown table. Empty rows / columns at the edges are
   trimmed.

   For very wide / tall sheets, the markdown output can balloon —
   prefer pandas + tailored summarization for spreadsheets that
   exceed an LLM's comfortable context. This loader is intended for
   the common case (config sheets, lookup tables, structured records).



Functions
---------

.. autoapisummary::

   jeevesagent.loader.excel.load_excel


Module Contents
---------------

.. py:function:: load_excel(path: str | pathlib.Path) -> jeevesagent.loader.base.Document

   Load an Excel workbook → markdown.

   Each sheet becomes ``## {sheet_name}`` with the cell grid as a
   markdown table. Formula cells return their cached values
   (data_only=True).

   Requires ``openpyxl``:
   ``pip install 'jeevesagent[loader-excel]'``.


