Created
January 29, 2025 12:22
-
-
Save documentprocessing/db6e3600b9b6c86d98d282814b97677d to your computer and use it in GitHub Desktop.
Read Metadata Information from Excel XLSX file with PyLightXL API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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