How hussamshebrawi/student-records-cleaner works
Student Records Cleaner is a small command-line CSV cleaning script. The workflow starts with CLI arguments, reads a header and rows, applies ordered row-shape and data-quality checks, writes accepted rows, and logs rejected rows and a summary. Validation helpers and the CLI/error-handling layer are shown separately; the checks themselves are stages within the single cleaner, not independent services. The graph is based on the README and the excerpted main.py; no additional runtime modules were identified.
Main entry points: main.py CSV cleaner · students.csv Input CSV · students_cleaned.csv Cleaned CSV
Components 11
CLI and errors
CSV cleaning
- CSV cleaner
main.py - Row checks
main.py - Empty-cell detection
main.py - Age validation
main.py - Email validation
main.py
Files and reporting
- Run summary
main.py - Input CSV
data/students.csv - Cleaned CSV
data/students_cleaned.csv - Rejection log
Other components
- CLI user
Connections 11
- CLI user → Argument parsing and error handling: runs
README.md - Argument parsing and error handling → CSV cleaner: calls
main.py - Argument parsing and error handling → Rejection log: configures
main.py - CSV cleaner → Input CSV: reads
main.py - CSV cleaner → Row checks: checks rows
main.py - CSV cleaner → Empty-cell detection: detects empties
main.py - CSV cleaner → Age validation: validates age
main.py - CSV cleaner → Email validation: validates email
main.py - CSV cleaner → Cleaned CSV: writes valid rows
main.py - CSV cleaner → Rejection log: logs rejected rows
main.py - CSV cleaner → Run summary: reports counts
main.py