How jmich7/controle-de-abastecimento works
This is a command-line fuel-refueling tracker. The user selects actions from a menu to register, list, search, edit, or delete refueling records; reporting features calculate fuel consumption and spending, and produce charts. The single Python file contains the menu, domain operations, file persistence, and error logging. The tree and excerpts show records stored in a text file and errors appended to another. Some report and menu code is omitted, so their internal call relationships are not asserted.
Main entry points: main.py Record operations · abastecimentos.txt Refueling file · erros.txt Error log
Components 9
CLI interaction
- Menu and dispatch
main.py - Error logging
main.py - Error log
erros.txt
Refueling records
- Record operations
main.py - Refueling file
abastecimentos.txt
Reports and charts
- Consumption and spending
main.py - Charts
main.py
Other components
- Terminal user
- Matplotlib
Connections 7
- Terminal user → Menu and dispatch: chooses action
main.py - Menu and dispatch → Record operations: dispatches CRUD
main.py - Record operations → Refueling file: reads and writes
main.py - Record operations → Error logging: logs failures
main.py - Error logging → Error log: appends errors
main.py - Consumption and spending → Refueling file: loads records
main.py - Charts → Matplotlib: renders charts
main.py