How rafa-riki/converter works
This is a small Python CLI unit converter. The user selects a conversion, enters a number, and receives a formatted result; results are accumulated in memory and can be appended to a text file. The menu, conversion methods, and history handling are all implemented in one source file. The README documents the supported conversions and history feature, while the excerpt shows the CLI dispatch and file write; no separate storage or integration layer is present.
Main entry points: unti-convert.py Main loop
Components 7
CLI
- Main loop
unti-convert.py - Menu display
unti-convert.py
Conversion
- Unit conversions
unti-convert.py
History
- History list
unti-convert.py - Save history
unti-convert.py - Text file
Other components
- User
Connections 7
- User → Main loop: enters choices
unti-convert.py - Main loop → Menu display: prints menu
unti-convert.py - Main loop → Unit conversions: dispatches conversion
unti-convert.py - Main loop → History list: appends result
unti-convert.py - Main loop → Save history: dispatches save
unti-convert.py - Save history → History list: reads entries
unti-convert.py - Save history → Text file: appends text
unti-convert.py