How nasermaher/p3-collect-comparative works
P3CC is a Windows desktop batch tool that enriches .p3 card records with matching Excel data. The main workflow starts in the GUI, which invokes the pipeline; the pipeline loads profiles and Excel data, detects the profile, processes source records, and writes one enriched output file. The graph also shows profile management, remembered-folder settings, and record/data transformation. Relationships reflect the shown excerpts, SOURCE INDEX references, and README; unsampled implementation details are not expanded.
Main entry points: main.py Batch pipeline · field_map_store.py Profile validation and migration · gui.py Main window · settings.py Settings persistence
Components 20
Desktop interface
- GUI launcher
app.py - Main window
gui.py - Folder settings UI
gui.py
Batch processing
- Batch pipeline
main.py - Source discovery
utils.py - Excel loading
utils.py - Profile detection
utils.py - Record parsing
utils.py - Tag construction
utils.py
Profile configuration
- Profile management
gui.py - Profile validation and migration
field_map_store.py - field_map.json
Runtime support
- Settings persistence
settings.py - settings.json
- Format and defaults
config.py - Domain errors
exceptions.py
Other components
- Desktop user
- P3 source files
- Excel workbook
- Enriched P3 output
Connections 26
- Desktop user → GUI launcher: launches
README.md - GUI launcher → Main window: launches
app.py - Desktop user → Main window: chooses inputs
README.md - Main window → Batch pipeline: runs
gui.py - Batch pipeline → Source discovery: discovers files
main.py - Source discovery → P3 source files: finds
README.md - Batch pipeline → Excel loading: loads workbook
main.py - Excel loading → Excel workbook: reads
README.md - Batch pipeline → Profile validation and migration: loads profiles
main.py - Batch pipeline → Profile detection: detects profile
main.py - Batch pipeline → Record parsing: iterates records
main.py - Record parsing → P3 source files: reads records
README.md - Batch pipeline → Tag construction: builds tags
main.py - Batch pipeline → Enriched P3 output: writes merged output
README.md - Main window → Profile management: opens
gui.py - Profile management → Profile validation and migration: edits profiles
README.md - Profile validation and migration → field_map.json: loads and saves
field_map_store.py - Profile validation and migration → Format and defaults: uses defaults
field_map_store.py - Main window → Folder settings UI: opens
gui.py - Folder settings UI → Settings persistence: loads and saves
README.md - Settings persistence → settings.json: persists folders
settings.py - Batch pipeline → Settings persistence: gets app directory
main.py - Profile validation and migration → Settings persistence: gets app directory
field_map_store.py - Batch pipeline → Format and defaults: uses markers
main.py - Batch pipeline → Domain errors: raises and handles
main.py - Profile validation and migration → Domain errors: raises validation errors
field_map_store.py