Skip to content

Commit

Permalink
add readFromXLSX
Browse files Browse the repository at this point in the history
  • Loading branch information
gdraheim committed Jul 31, 2024
1 parent 4d69c0e commit 1f47057
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tabxlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ class TabText(NamedTuple):
data: List[Dict[str, CellValue]]
headers: List[str]

def readFromXLSX(filename: str) -> List[Dict[str, CellValue]]:
return tabtextfileXLSX(filename).data
def tabtextfileXLSX(filename: str) -> TabText:
workbook = load_workbook(filename)
return tabtext_workbook(workbook)
Expand Down

0 comments on commit 1f47057

Please sign in to comment.