Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save documentprocessing/db6e3600b9b6c86d98d282814b97677d to your computer and use it in GitHub Desktop.
Save documentprocessing/db6e3600b9b6c86d98d282814b97677d to your computer and use it in GitHub Desktop.
Read Metadata Information from Excel XLSX file with PyLightXL API
import pylightxl as xl
# Load the Excel file
file_path = "example.xlsx"
workbook = xl.readxl(fn=file_path)
# PyLightXL does not have built-in metadata extraction,
# but you can check basic file-level information
print("Excel Metadata Information:")
print(f"File Name: {file_path}")
print(f"Number of Sheets: {len(workbook.ws_names)}")
# Print all sheet names
print("Sheet Names:", workbook.ws_names)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment