How jgracemilk/mergexls works
mergexls is a command-line converter that combines listed CSV/TXT and HTML tables into one Excel workbook. The user supplies a tab-separated manifest and output path; the main orchestrator reads the manifest, dispatches each input by type, creates worksheets, and saves the workbook. CSV handling loads and writes tabular data, while HTML handling parses tables, falls back to html5lib for malformed input, and optionally applies formatting. The README also documents template workbooks and fast mode. Relationships reflect the shown orchestrator calls and documented behavior; unsampled implementation details are not inferred.
Main entry points: mergexls.py Merge orchestrator · html_processor.py HTML table converter · excel_utils.py Sheet naming · csv_handler.py CSV loader
Components 11
Workbook workflow
- Merge orchestrator
mergexls.py - Sheet naming
excel_utils.py - Excel workbook
Input conversion
- CSV loader
csv_handler.py - CSV worksheet writer
csv_handler.py - HTML table converter
html_processor.py
Excel formatting
- Sheet formatting
excel_utils.py - HTML style helpers
styling.py - Cover links
styling.py
Other components
- User
- Input manifest
Connections 10
- User → Merge orchestrator: runs
README.md - Input manifest → Merge orchestrator: reads
mergexls.py - Merge orchestrator → Sheet naming: sanitizes names
mergexls.py - Merge orchestrator → CSV loader: loads CSV
mergexls.py - Merge orchestrator → CSV worksheet writer: writes CSV sheet
mergexls.py - Merge orchestrator → HTML table converter: converts HTML
mergexls.py - Merge orchestrator → Sheet formatting: formats CSV sheet
mergexls.py - Merge orchestrator → Cover links: adds cover links
mergexls.py - HTML table converter → HTML style helpers: uses style helpers
html_processor.py - Merge orchestrator → Excel workbook: saves
mergexls.py