A simple Python application with tkinter GUI for reading Excel files and counting rows in each sheet.
- Simple GUI: Basic tkinter interface with file selection
- Progress Bar: Shows progress while processing sheets
- Row Counting: Counts rows in each sheet of the Excel file
- Function-based: Uses simple functions (no OOP)
# Install dependencies
poetry install# Run the application
poetry run python -m xlsx_reader.mainxlsx_reader/
├── __init__.py
├── main.py # Main entry point
├── gui.py # Simple tkinter GUI
└── excel_processor.py # Excel processing functions
tests/
├── __init__.py
└── test_excel_processor.py # Tests for functions
Students need to implement the following functions (marked with pass):
get_sheet_names()- Get all sheet names from Excel fileget_sheet_row_count()- Count rows in a specific sheetprocess_excel_file()- Process all sheets and return row counts
select_excel_file()- Open file dialog for Excel file selectionupdate_progress()- Update progress barprocess_file_in_background()- Process file in background threadcreate_main_window()- Create main windowrun_app()- Run the complete application
- pandas: For reading Excel files
- tkinter: For GUI (included with Python)
- pytest: For testing (dev dependency)
- xlsxwriter: For creating test Excel files (dev dependency)
poetry run pytestTests will create temporary Excel files automatically for testing your implementations.