How abdesslam-oop/elecalc works
EleCalc is an electronics calculator available through a menu-driven CLI, a tabbed desktop GUI, and a keyboard-driven TUI. Users select a calculation, enter engineering values (including SI prefixes), receive results, and can review or export calculation history. The six calculation domains are distinct runtime capabilities; calculation history is shared through a logger facade and SQLite-backed storage. The README documents the full interface coverage; source excerpts directly confirm CLI routing, GUI/TUI calculation examples, and the history persistence boundary.
Main entry points: main.py Terminal menu · main_app.py Desktop tabs · logger.py History facade · app.py Keyboard TUI
Components 13
User interfaces
- Terminal menu
main.py - Desktop tabs
gui/main_app.py - Keyboard TUI
tui/app.py
Calculation domains
- Ohm's law
modules/Ohm_s_law.py - Resistor decoder
modules/resistor_decoder.py - RC analysis
modules/rc_circuit.py - Unit converter
modules/unit_converter.py - RLC analysis
modules/rlc_circuit.py - Bode response
modules/frequency_response.py
History and storage
- History facade
modules/logger.py - SQLite and JSON
modules/storage.py
Shared presentation
- Terminal presentation
modules/display.py
Other components
- Engineer or learner
Connections 35
- Engineer or learner → Terminal menu: selects and enters
README.md - Engineer or learner → Desktop tabs: enters values
README.md - Engineer or learner → Keyboard TUI: selects and enters
README.md - Terminal menu → Ohm's law: routes choice
main.py - Terminal menu → Resistor decoder: routes choice
main.py - Terminal menu → RC analysis: routes choice
main.py - Terminal menu → Unit converter: routes choice
README.md - Terminal menu → RLC analysis: routes choice
main.py - Terminal menu → Bode response: routes choice
README.md - Desktop tabs → Ohm's law: computes with
README.md - Desktop tabs → Resistor decoder: computes with
README.md - Desktop tabs → RC analysis: computes with
gui/main_app.py - Desktop tabs → Unit converter: computes with
README.md - Desktop tabs → RLC analysis: computes with
README.md - Desktop tabs → Bode response: computes with
gui/main_app.py - Keyboard TUI → Ohm's law: computes with
README.md - Keyboard TUI → Resistor decoder: computes with
README.md - Keyboard TUI → RC analysis: computes with
tui/app.py - Keyboard TUI → Unit converter: computes with
README.md - Keyboard TUI → RLC analysis: computes with
README.md - Keyboard TUI → Bode response: computes with
tui/app.py - Ohm's law → History facade: records calculation
modules/Ohm_s_law.py - Resistor decoder → History facade: records calculation
modules/resistor_decoder.py - RC analysis → History facade: records calculation
modules/rc_circuit.py - Unit converter → History facade: records calculation
modules/unit_converter.py - RLC analysis → History facade: records calculation
modules/rlc_circuit.py - Bode response → History facade: records calculation
modules/frequency_response.py - Terminal menu → History facade: views history
README.md - Desktop tabs → History facade: views history
README.md - History facade → SQLite and JSON: delegates persistence
modules/logger.py - Terminal menu → Terminal presentation: renders terminal UI
main.py - Ohm's law → Terminal presentation: prompts and formats
modules/Ohm_s_law.py - Resistor decoder → Terminal presentation: formats results
modules/resistor_decoder.py - RLC analysis → Terminal presentation: formats results
modules/rlc_circuit.py - Bode response → Terminal presentation: renders terminal output
modules/frequency_response.py