How corvogithub/tandur works
Tandur is a terminal application for recording harvest transactions and transparently calculating the 70/30 farmer/group-fund split. The principal workflow starts with an operator entering a harvest, which the menu controller validates and passes to domain logic for record creation; the controller then saves it and presents results. The same menu routes listing, search, sorting, editing, deletion, summaries and receipt printing. The excerpts show the controller’s calls and the JSON/receipt persistence implementation; other menu behavior is supported by the README. No external services are shown.
Main entry points: main.py Menu controller · file_handler.py JSON persistence · ui_formatter.py Terminal presentation · algorithms.py Harvest entry and split
Components 10
Terminal interface
- Menu controller
main.py - Terminal presentation
ui_formatter.py
Harvest domain
- Harvest entry and split
algorithms.py - Record management
algorithms.py - Search and sorting
algorithms.py - Harvest summaries
algorithms.py
Persistence and receipts
- Harvest JSON store
data/db_panen.json - JSON persistence
file_handler.py - Receipt text files
laporan
Other components
- Farm group operator
Connections 11
- Farm group operator → Menu controller: chooses actions
README.md - Menu controller → Terminal presentation: renders and prompts
main.py - Menu controller → Harvest entry and split: creates records
main.py - Menu controller → Record management: adds or edits
main.py - Menu controller → Search and sorting: searches and sorts
main.py - Menu controller → Harvest summaries: requests summary
main.py - Menu controller → JSON persistence: loads and saves
main.py - JSON persistence → Harvest JSON store: reads and writes
file_handler.py - Menu controller → JSON persistence: creates receipt
main.py - JSON persistence → Receipt text files: writes receipt
file_handler.py - Menu controller → Terminal presentation: displays receipt
main.py