Add card list reader and card import test scripts

This commit is contained in:
2026-07-26 18:32:05 +00:00
parent fc6b87515e
commit 1556a6d1aa
2 changed files with 119 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env python3
"""Read the MTG card list XLSX and print all card names."""
import openpyxl
wb = openpyxl.load_workbook('/home/wall-o/MTG card list.xlsx')
ws = wb.active
print(f"Sheet: {ws.title}, Rows: {ws.max_row}, Cols: {ws.max_column}")
for row in ws.iter_rows(min_row=1, max_row=min(ws.max_row, 50), values_only=True):
print(row)