MCPcopy Create free account

hub / github.com/Nirmallllll/PriceTrend_Engineer / functions

Functions53 in github.com/Nirmallllll/PriceTrend_Engineer

↓ 5 callersFunctiontext_to_speech_component
Add a text-to-speech button that reads the provided text
app.py:41
↓ 2 callersMethod_generate_realistic_market_data
Generate realistic market data based on actual market patterns
services/data_service.py:87
↓ 1 callersMethod_assess_weather_impact
Assess weather impact on crop prices
services/data_service.py:175
↓ 1 callersMethod_cache_data
Cache data with expiry time
services/data_service.py:210
↓ 1 callersMethod_fetch_from_government_api
Attempt to fetch data from Indian government agricultural APIs
services/data_service.py:46
↓ 1 callersMethod_fetch_from_market_apis
Fetch from agricultural market data providers
services/data_service.py:72
↓ 1 callersMethod_get_crop_category
Categorize crop for scheme matching
services/government_schemes.py:33
↓ 1 callersMethod_get_fallback_analysis
Fallback analysis when OpenAI is unavailable
services/openai_service.py:163
↓ 1 callersMethod_get_fallback_factors
Fallback price factors when OpenAI is unavailable
services/openai_service.py:213
↓ 1 callersMethod_get_fallback_recommendations
Fallback recommendations when OpenAI is unavailable
services/openai_service.py:200
↓ 1 callersMethod_get_recommendation
Get human-readable recommendation based on signal
models/ml_predictor.py:182
↓ 1 callersMethod_is_cache_valid
Check if cached data is still valid
services/data_service.py:203
↓ 1 callersMethod_is_scheme_applicable
Check if a scheme is applicable to the given criteria
services/government_schemes.py:50
↓ 1 callersMethod_load_schemes_data
Load government schemes data
services/government_schemes.py:77
↓ 1 callersMethod_process_government_data
Process data from government APIs
services/data_service.py:186
↓ 1 callersMethodanalyze_market_trends
Generate comprehensive market trend analysis
services/openai_service.py:15
↓ 1 callersMethodanalyze_price_factors
Analyze factors affecting crop prices
services/openai_service.py:96
↓ 1 callersFunctiondisplay_ai_analysis
Display AI-powered market analysis
app.py:644
↓ 1 callersFunctiondisplay_analysis_results
Display comprehensive analysis results
app.py:283
↓ 1 callersFunctiondisplay_government_schemes
Display relevant government schemes
app.py:739
↓ 1 callersFunctiondisplay_key_metrics
Display key market metrics in card format
app.py:377
↓ 1 callersFunctiondisplay_market_news
Display relevant market news and updates
app.py:772
↓ 1 callersFunctiondisplay_model_performance
Display ML model performance metrics
app.py:607
↓ 1 callersFunctiondisplay_price_comparison_table
Display yesterday vs today vs tomorrow price comparison
app.py:418
↓ 1 callersFunctiondisplay_price_trend_chart
Display interactive price trend chart
app.py:458
↓ 1 callersFunctiondisplay_technical_analysis_charts
Display technical analysis indicators
app.py:561
↓ 1 callersFunctiondisplay_welcome_screen
Display welcome screen with app information
app.py:222
↓ 1 callersMethodgenerate_historical_data
Generate realistic historical price data based on seasonal patterns This simulates real market data with proper seasonal variations
utils/data_processor.py:13
↓ 1 callersMethodgenerate_market_summary
Generate a concise market summary
services/openai_service.py:134
↓ 1 callersMethodget_farming_recommendations
Get AI-powered farming and business recommendations
services/openai_service.py:59
↓ 1 callersMethodget_feature_importance
Get feature importance from the trained model
models/ml_predictor.py:111
↓ 1 callersMethodget_market_data
Fetch real market data for the specified crop and location Falls back to simulated data if APIs are unavailable
services/data_service.py:15
↓ 1 callersMethodget_market_news
Get relevant market news and updates
services/data_service.py:216
↓ 1 callersMethodget_relevant_schemes
Get government schemes relevant to the crop and location
services/government_schemes.py:10
↓ 1 callersMethodget_scheme_application_guide
Get step-by-step application guide for a scheme
services/government_schemes.py:236
↓ 1 callersMethodget_scheme_details
Get detailed information about a specific scheme
services/government_schemes.py:26
↓ 1 callersMethodget_weather_data
Fetch weather data that affects crop prices
services/data_service.py:156
↓ 1 callersFunctioninitialize_services
()
app.py:30
↓ 1 callersFunctionmain
()
app.py:102
↓ 1 callersMethodpredict_future_prices
Predict prices for the next few days
models/ml_predictor.py:89
↓ 1 callersMethodpredict_prices
Make price predictions using the trained model
models/ml_predictor.py:80
↓ 1 callersMethodprepare_features
Prepare features for ML model training
utils/data_processor.py:70
↓ 1 callersFunctionstop_speech_component
Add a stop speech button
app.py:90
↓ 1 callersMethodtrain_models
Train multiple models and select the best performing one
models/ml_predictor.py:29
Method__init__
(self)
utils/data_processor.py:10
Method__init__
(self)
services/openai_service.py:9
Method__init__
(self)
services/data_service.py:11
Method__init__
(self)
services/government_schemes.py:7
Method__init__
(self)
models/ml_predictor.py:17
Methodcalculate_market_metrics
Calculate various market metrics for analysis
utils/data_processor.py:101
Methodcalculate_prediction_confidence
Calculate confidence score for predictions
models/ml_predictor.py:127
Methodgenerate_market_signals
Generate trading signals based on predictions
models/ml_predictor.py:151
Methodget_seasonal_insights
Get seasonal insights for specific crops
utils/data_processor.py:124