add logging for utils
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
|
import io
|
||||||
|
import logging
|
||||||
import zipfile, xml.etree.ElementTree as ET
|
import zipfile, xml.etree.ElementTree as ET
|
||||||
|
|
||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
|
|
||||||
# -------------------------------------------------------------------------
|
logger = logging.getLogger(__name__)
|
||||||
# Helper: pull raw text from OOXML containers (docx / xlsx / pptx)
|
|
||||||
# -------------------------------------------------------------------------
|
|
||||||
def extract_office_xml_text(file_bytes: bytes, mime_type: str) -> Optional[str]:
|
def extract_office_xml_text(file_bytes: bytes, mime_type: str) -> Optional[str]:
|
||||||
"""
|
"""
|
||||||
Very light-weight XML scraper for Word, Excel, PowerPoint files.
|
Very light-weight XML scraper for Word, Excel, PowerPoint files.
|
||||||
|
|||||||
Reference in New Issue
Block a user