ó
    -Ðåhý  ã                   óN   • S r SSKJr  SSKJrJrJr  SSKJrJ	r	   " S S\5      r
g)zLoads Microsoft Excel files.é    )ÚPath)ÚAnyÚListÚUnion)ÚUnstructuredFileLoaderÚvalidate_unstructured_versionc                   óZ   ^ • \ rS rSrSr S
S\\\4   S\S\4U 4S jjjr	S\
4S jrS	rU =r$ )ÚUnstructuredExcelLoaderé   a\  Load Microsoft Excel files using `Unstructured`.

Like other
Unstructured loaders, UnstructuredExcelLoader can be used in both
"single" and "elements" mode. If you use the loader in "elements"
mode, each sheet in the Excel file will be an Unstructured Table
element. If you use the loader in "single" mode, an
HTML representation of the table will be available in the
"text_as_html" key in the document metadata.

Examples
--------
from langchain_community.document_loaders.excel import UnstructuredExcelLoader

loader = UnstructuredExcelLoader("stanley-cups.xlsx", mode="elements")
docs = loader.load()
Ú	file_pathÚmodeÚunstructured_kwargsc                 óR   >• [        U5      n[        SS9  [        TU ]  " SXS.UD6  g)a  

Args:
    file_path: The path to the Microsoft Excel file.
    mode: The mode to use when partitioning the file. See unstructured docs
      for more info. Optional. Defaults to "single".
    **unstructured_kwargs: Keyword arguments to pass to unstructured.
z0.6.7)Úmin_unstructured_version)r   r   N© )Ústrr   ÚsuperÚ__init__)Úselfr   r   r   Ú	__class__s       €ÚZ/root/34ku/venv/lib/python3.13/site-packages/langchain_community/document_loaders/excel.pyr   Ú UnstructuredExcelLoader.__init__   s,   ø€ ô ˜	“Nˆ	Ü%¸wÒGÜ‰ÒÐO 9ÑOÐ;NÓOó    Úreturnc                 óJ   • SSK Jn  U" SSU R                  0U R                  D6$ )Nr   )Úpartition_xlsxÚfilenamer   )Úunstructured.partition.xlsxr   r   r   )r   r   s     r   Ú_get_elementsÚ%UnstructuredExcelLoader._get_elements1   s"   € Ý>áÑR t§~¡~ÐR¸×9QÑ9QÑRÐRr   r   )Úsingle)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r   r   r   r   Ú__static_attributes__Ú__classcell__)r   s   @r   r
   r
      sU   ø† ñð* ñPà˜˜d˜Ñ#ðPð ðPð  #÷	Pð Pð$S˜t÷ Sò Sr   r
   N)r&   Úpathlibr   Útypingr   r   r   Ú1langchain_community.document_loaders.unstructuredr   r   r
   r   r   r   Ú<module>r,      s%   ðÙ "å ß #Ñ #÷ô(SÐ4õ (Sr   