How ransen1128-png/smartpoultry works
SMARTPOULTRY is a Django poultry-farm management system with operational records, financial tracking, analytics, reporting, alerts, and vision/age-estimation features. The documented user workflow is to manage flocks and record production and financial activity, then view analytics, forecasts, alerts, and reports. The graph includes the documented product branches and sampled internal vision, persistence, and audit layers. Some relationships are documented only in the README; unsampled implementation links are omitted rather than inferred.
Main entry points: app.py Django application · excel_export.py Reports and exports · spur_cache.py Spur prediction cache · models.py Revenue records
Components 23
Application entry
- Django application
app.py
Farm operations
- Flock management
smartpoultry/flocks/models.py - Production and health
smartpoultry/production/models.py - Inventory tracking
smartpoultry/inventory/models.py
Finance and insights
- Revenue records
smartpoultry/revenue/models.py - Expense records
smartpoultry/expenses/models.py - Analytics and forecasts
smartpoultry/analytics/views.py - Reports and exports
smartpoultry/reports/excel_export.py - Forecast predictor
ml_models/predictor.py
Accounts and alerts
- Accounts and roles
smartpoultry/accounts/views.py - Alerts and notifications
smartpoultry/notifications/readiness.py
Vision and ML
- Vision API
smartpoultry/core/vision_api.py - Free image inference
smartpoultry/core/free_inference.py - Poultry vision
smartpoultry/core/poultry_vision.py - Spur prediction cache
smartpoultry/core/spur_cache.py - Cache service
smartpoultry/core/spur_cache_service.py - Spur measurement
smartpoultry/core/spur_measurement.py - Geometry API
smartpoultry/core/geometry_api.py - Rooster age classifier
smartpoultry/core/rooster_age_classifier.py
Core platform
- Change auditing
smartpoultry/core/audit.py - Farm and shared records
smartpoultry/core/models.py - Uploaded-file storage
smartpoultry/core/storage.py
Other components
- Farm user
Connections 34
- Farm user → Django application: uses
README.md - Django application → Accounts and roles: routes to
- Django application → Flock management: routes to
- Django application → Production and health: routes to
- Django application → Inventory tracking: routes to
- Django application → Revenue records: routes to
- Django application → Expense records: routes to
- Django application → Analytics and forecasts: routes to
- Django application → Reports and exports: routes to
- Django application → Alerts and notifications: routes to
- Flock management → Production and health: supports records
- Revenue records → Flock management: references
smartpoultry/revenue/models.py - Revenue records → Production and health: reads
smartpoultry/revenue/models.py - Analytics and forecasts → Forecast predictor: uses forecasts
- Forecast predictor → Revenue records: trains from
- Forecast predictor → Expense records: trains from
- Reports and exports → Revenue records: reads
smartpoultry/reports/excel_export.py - Reports and exports → Expense records: reads
smartpoultry/reports/excel_export.py - Reports and exports → Production and health: reads
smartpoultry/reports/excel_export.py - Reports and exports → Flock management: reads
smartpoultry/reports/excel_export.py - Reports and exports → Inventory tracking: reads
smartpoultry/reports/excel_export.py - Uploaded-file storage → Farm and shared records: persists files
smartpoultry/core/storage.py - Change auditing → Farm and shared records: records changes
smartpoultry/core/audit.py - Free image inference → Poultry vision: uses
smartpoultry/core/free_inference.py - Cache service → Spur prediction cache: calls
smartpoultry/core/spur_cache_service.py - Cache service → Free image inference: runs inference
smartpoultry/core/spur_cache_service.py - Spur prediction cache → Free image inference: uses
smartpoultry/core/spur_cache.py - Spur prediction cache → Vision API: uses
smartpoultry/core/spur_cache.py - Spur prediction cache → Geometry API: uses
smartpoultry/core/spur_cache.py - Spur prediction cache → Spur measurement: uses
smartpoultry/core/spur_cache.py - Spur prediction cache → Farm and shared records: reads and writes
smartpoultry/core/spur_cache.py - Rooster age classifier → Farm and shared records: saves estimates
- Farm user → Vision API: submits photos
- Alerts and notifications → Inventory tracking: alerts on stock