How nikhilbogawar/farmers-connect works
FarmersConnect is a Flask agricultural assistant. Farmers register or sign in, then request crop, fertilizer, or image-based disease predictions; authenticated prediction routes save results for dashboard statistics and history. The README also documents treatment guidance and multilingual support. The graph follows relationships visible in excerpts or README statements; unsampled implementation details and integrations are omitted rather than inferred.
Main entry points: app/__init__.py App factory · predictions/__init__.py Prediction routes · main/__init__.py Dashboard and history · auth/__init__.py Authentication
Components 17
Web application
- Flask entry point
app.py - App factory
app/__init__.py - Dashboard and history
app/main/__init__.py - Web pages
templates - Translation support
templates
Accounts and history
- Authentication
app/auth/__init__.py - User accounts
app/models.py - Prediction history
app/models.py
Agricultural recommendations
- Prediction routes
app/predictions/__init__.py - Crop recommendations
ml_utils.py - Fertilizer suggestions
ml_utils.py - Disease upload route
app/main/__init__.py - Image classifier
app/predictions/disease_logic.py - Disease guidance
ml_utils.py
Runtime and models
- Configuration
config.py - Model loading
ml_utils.py
Other components
- Farmer
Connections 18
- Farmer → Flask entry point: uses
README.md - Flask entry point → App factory: creates app
app.py - App factory → Configuration: loads config
app/__init__.py - App factory → Authentication: registers
app/__init__.py - App factory → Dashboard and history: registers
app/__init__.py - App factory → Prediction routes: registers
app/__init__.py - Authentication → User accounts: reads and writes
app/auth/__init__.py - Dashboard and history → Prediction history: queries
app/main/__init__.py - Prediction routes → Crop recommendations: requests prediction
app/predictions/__init__.py - Prediction routes → Fertilizer suggestions: requests suggestion
app/predictions/__init__.py - Prediction routes → Prediction history: records result
app/predictions/__init__.py - Dashboard and history → Web pages: renders
app/main/__init__.py - Authentication → Web pages: renders
app/auth/__init__.py - Prediction routes → Web pages: renders
app/predictions/__init__.py - Disease upload route → Image classifier: calls classifier
app/main/__init__.py - Image classifier → Model loading: loads weights
app/predictions/disease_logic.py - Translation support → Farmer: serves translations
README.md - Farmer → Disease guidance: can receive guidance
README.md