# grv08singh/27-nso-agri-app architecture

> Architecture diagram of the GitHub repository grv08singh/27-nso-agri-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/grv08singh/27-nso-agri-app
- Repository: https://github.com/grv08singh/27-nso-agri-app

## Overview

Krishi-Soft is a Tkinter desktop application supporting the Crop Cutting Experiment workflow, from importing planned and received schedules through receipt tracking, schedule editing and validation, then estimates and status reporting. The README documents these major capabilities; sampled source confirms the application entry point, shared CSV/repository utilities, and parts of the import and validation behavior. Several later module implementations were not sampled, so their documented capabilities are represented, but uncertain internal call relationships are left unasserted.

Main entry points: [`krishi_soft/modules/m02_import_schedules/service.py`](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m02_import_schedules/service.py) (Schedule import), [`krishi_soft/core/repo.py`](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/repo.py) (Artifact repository), [`krishi_soft/modules/m06_validation/service.py`](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m06_validation/service.py) (Schedule validation), [`krishi_soft/modules/m01_master_list/service.py`](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m01_master_list/service.py) (Master List import)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_entry["Application startup<br/>[app.py]"]
  node_window["Main window<br/>[main_window.py]"]
  node_home["Home and modules<br/>[home.py]"]
end

subgraph group_workflow["CCE workflow"]
  node_master["Master List import<br/>[service.py]"]
  node_schedules["Schedule import<br/>[service.py]"]
  node_control["Control Register<br/>[service.py]"]
  node_nr["NR lists<br/>[service.py]"]
  node_edit["View, edit, print<br/>[service.py]"]
  node_validation["Schedule validation<br/>[service.py]"]
end

subgraph group_shared["Shared services"]
  node_paths["Configured paths<br/>[paths.py]"]
  node_lookups["Reference lookups<br/>[lookups.py]"]
  node_csv[("CSV storage<br/>[csv_store.py]")]
  node_repo["Artifact repository<br/>[repo.py]"]
  node_codes["Codes and identifiers<br/>[codes.py]"]
  node_reports["Run reports<br/>[report.py]"]
  node_inbox["Import inbox<br/>[inbox.py]"]
end

subgraph group_outputs["Analysis outputs"]
  node_estimates["Estimates"]
  node_status["Status reporting"]
end

node_operator(("Operator"))

node_operator -->|"starts"| node_entry
node_entry -->|"opens"| node_window
node_window -->|"shows"| node_home
node_home -.->|"starts import"| node_master
node_master -.->|"precedes"| node_schedules
node_schedules -.->|"feeds workflow"| node_control
node_control -.->|"supports tracking"| node_nr
node_schedules -.->|"provides schedules"| node_edit
node_edit -.->|"precedes checks"| node_validation
node_validation -.->|"supports estimates"| node_estimates
node_entry -->|"loads"| node_repo
node_master -->|"reads imports"| node_inbox
node_schedules -->|"reads imports"| node_inbox
node_master -->|"updates references"| node_lookups
node_schedules -->|"loads master list"| node_repo
node_validation -->|"loads and saves"| node_repo
node_control -->|"saves register"| node_repo
node_repo -->|"resolves files"| node_paths
node_repo -->|"reads and writes"| node_csv
node_lookups -->|"writes references"| node_csv
node_lookups -->|"resolves files"| node_paths
node_schedules -->|"normalizes identifiers"| node_codes
node_validation -->|"checks crop data"| node_lookups
node_validation -.->|"reports results"| node_reports
node_estimates -.->|"informs reporting"| node_status

click node_entry "https://github.com/grv08singh/27-nso-agri-app/blob/main/app.py"
click node_window "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/ui/main_window.py"
click node_home "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/ui/home.py"
click node_master "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m01_master_list/service.py"
click node_schedules "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m02_import_schedules/service.py"
click node_control "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m03_control_register/service.py"
click node_nr "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m04_nr/service.py"
click node_edit "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m05_view_edit/service.py"
click node_validation "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m06_validation/service.py"
click node_estimates "https://github.com/grv08singh/27-nso-agri-app/tree/main/krishi_soft/modules/m07_estimates"
click node_status "https://github.com/grv08singh/27-nso-agri-app/tree/main/krishi_soft/modules/m08_status_report"
click node_paths "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/paths.py"
click node_lookups "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/lookups.py"
click node_csv "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/csv_store.py"
click node_repo "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/repo.py"
click node_codes "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/codes.py"
click node_reports "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/report.py"
click node_inbox "https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/inbox.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_window,node_home toneBlue
class node_master,node_schedules,node_control,node_nr,node_edit,node_validation toneAmber
class node_paths,node_lookups,node_csv,node_repo,node_codes,node_reports,node_inbox toneMint
class node_estimates,node_status toneRose
class node_operator toneIndigo
```

## Components

### Desktop interface

- [Application startup](https://github.com/grv08singh/27-nso-agri-app/blob/main/app.py): `app.py`
- [Main window](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/ui/main_window.py): `krishi_soft/ui/main_window.py`
- [Home and modules](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/ui/home.py): `krishi_soft/ui/home.py`

### CCE workflow

- [Master List import](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m01_master_list/service.py): `krishi_soft/modules/m01_master_list/service.py`
- [Schedule import](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m02_import_schedules/service.py): `krishi_soft/modules/m02_import_schedules/service.py`
- [Control Register](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m03_control_register/service.py): `krishi_soft/modules/m03_control_register/service.py`
- [NR lists](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m04_nr/service.py): `krishi_soft/modules/m04_nr/service.py`
- [View, edit, print](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m05_view_edit/service.py): `krishi_soft/modules/m05_view_edit/service.py`
- [Schedule validation](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/modules/m06_validation/service.py): `krishi_soft/modules/m06_validation/service.py`

### Shared services

- [Configured paths](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/paths.py): `krishi_soft/core/paths.py`
- [Reference lookups](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/lookups.py): `krishi_soft/core/lookups.py`
- [CSV storage](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/csv_store.py): `krishi_soft/core/csv_store.py`
- [Artifact repository](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/repo.py): `krishi_soft/core/repo.py`
- [Codes and identifiers](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/codes.py): `krishi_soft/core/codes.py`
- [Run reports](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/report.py): `krishi_soft/core/report.py`
- [Import inbox](https://github.com/grv08singh/27-nso-agri-app/blob/main/krishi_soft/core/inbox.py): `krishi_soft/core/inbox.py`

### Analysis outputs

- [Estimates](https://github.com/grv08singh/27-nso-agri-app/tree/main/krishi_soft/modules/m07_estimates): `krishi_soft/modules/m07_estimates`
- [Status reporting](https://github.com/grv08singh/27-nso-agri-app/tree/main/krishi_soft/modules/m08_status_report): `krishi_soft/modules/m08_status_report`

### Other components

- **Operator**

## Connections

- Operator → Application startup: starts (evidence: `app.py`)
- Application startup → Main window: opens (evidence: `app.py`)
- Main window → Home and modules: shows (evidence: `krishi_soft/ui/main_window.py`)
- Home and modules → Master List import: starts import
- Master List import → Schedule import: precedes
- Schedule import → Control Register: feeds workflow
- Control Register → NR lists: supports tracking (evidence: `krishi_soft/modules/m04_nr/service.py`)
- Schedule import → View, edit, print: provides schedules
- View, edit, print → Schedule validation: precedes checks
- Schedule validation → Estimates: supports estimates
- Application startup → Artifact repository: loads
- Master List import → Import inbox: reads imports (evidence: `krishi_soft/modules/m01_master_list/service.py`)
- Schedule import → Import inbox: reads imports (evidence: `krishi_soft/modules/m02_import_schedules/service.py`)
- Master List import → Reference lookups: updates references (evidence: `krishi_soft/modules/m01_master_list/service.py`)
- Schedule import → Artifact repository: loads master list (evidence: `krishi_soft/modules/m02_import_schedules/service.py`)
- Schedule validation → Artifact repository: loads and saves (evidence: `krishi_soft/modules/m06_validation/service.py`)
- Control Register → Artifact repository: saves register (evidence: `krishi_soft/modules/m03_control_register/service.py`)
- Artifact repository → Configured paths: resolves files (evidence: `krishi_soft/core/repo.py`)
- Artifact repository → CSV storage: reads and writes (evidence: `krishi_soft/core/repo.py`)
- Reference lookups → CSV storage: writes references (evidence: `krishi_soft/core/lookups.py`)
- Reference lookups → Configured paths: resolves files (evidence: `krishi_soft/core/lookups.py`)
- Schedule import → Codes and identifiers: normalizes identifiers (evidence: `krishi_soft/modules/m02_import_schedules/service.py`)
- Schedule validation → Reference lookups: checks crop data (evidence: `krishi_soft/modules/m06_validation/service.py`)
- Schedule validation → Run reports: reports results
- Estimates → Status reporting: informs reporting
