How lucasjcm-coder/decimal-roman-converter-python works
A small Python CLI converts decimal values to Roman numerals and Roman numerals to decimal. Its workflow reads terminal arguments, stdin, or a file; dispatches each line by whether it is numeric; applies the corresponding conversion; and prints formatted results. The README documents these input modes, though its file-option spelling differs from the implementation. All runtime behavior is implemented in src/main.py.
Main entry points: main.py Input reader
Components 10
Other components
- Terminal arguments
- Standard input
- Input file
- Input reader
src/main.py - CLI entry point
src/main.py - Line processor
src/main.py - Conversion dispatch
src/main.py - Decimal to Roman
src/main.py - Roman to decimal
src/main.py - Standard output
Connections 9
- Terminal arguments → Input reader: provides arguments
src/main.py - Standard input → Input reader: provides input
src/main.py - Input file → Input reader: provides values
src/main.py - CLI entry point → Input reader: reads input
src/main.py - CLI entry point → Line processor: processes lines
src/main.py - Line processor → Conversion dispatch: formats each value
src/main.py - Conversion dispatch → Decimal to Roman: converts numeric
src/main.py - Conversion dispatch → Roman to decimal: converts Roman
src/main.py - CLI entry point → Standard output: prints result
src/main.py