Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nirmallllll/PriceTrend_Engineer
/ functions
Functions
53 in github.com/Nirmallllll/PriceTrend_Engineer
⨍
Functions
53
◇
Types & classes
5
↓ 5 callers
Function
text_to_speech_component
Add a text-to-speech button that reads the provided text
app.py:41
↓ 2 callers
Method
_generate_realistic_market_data
Generate realistic market data based on actual market patterns
services/data_service.py:87
↓ 1 callers
Method
_assess_weather_impact
Assess weather impact on crop prices
services/data_service.py:175
↓ 1 callers
Method
_cache_data
Cache data with expiry time
services/data_service.py:210
↓ 1 callers
Method
_fetch_from_government_api
Attempt to fetch data from Indian government agricultural APIs
services/data_service.py:46
↓ 1 callers
Method
_fetch_from_market_apis
Fetch from agricultural market data providers
services/data_service.py:72
↓ 1 callers
Method
_get_crop_category
Categorize crop for scheme matching
services/government_schemes.py:33
↓ 1 callers
Method
_get_fallback_analysis
Fallback analysis when OpenAI is unavailable
services/openai_service.py:163
↓ 1 callers
Method
_get_fallback_factors
Fallback price factors when OpenAI is unavailable
services/openai_service.py:213
↓ 1 callers
Method
_get_fallback_recommendations
Fallback recommendations when OpenAI is unavailable
services/openai_service.py:200
↓ 1 callers
Method
_get_recommendation
Get human-readable recommendation based on signal
models/ml_predictor.py:182
↓ 1 callers
Method
_is_cache_valid
Check if cached data is still valid
services/data_service.py:203
↓ 1 callers
Method
_is_scheme_applicable
Check if a scheme is applicable to the given criteria
services/government_schemes.py:50
↓ 1 callers
Method
_load_schemes_data
Load government schemes data
services/government_schemes.py:77
↓ 1 callers
Method
_process_government_data
Process data from government APIs
services/data_service.py:186
↓ 1 callers
Method
analyze_market_trends
Generate comprehensive market trend analysis
services/openai_service.py:15
↓ 1 callers
Method
analyze_price_factors
Analyze factors affecting crop prices
services/openai_service.py:96
↓ 1 callers
Function
display_ai_analysis
Display AI-powered market analysis
app.py:644
↓ 1 callers
Function
display_analysis_results
Display comprehensive analysis results
app.py:283
↓ 1 callers
Function
display_government_schemes
Display relevant government schemes
app.py:739
↓ 1 callers
Function
display_key_metrics
Display key market metrics in card format
app.py:377
↓ 1 callers
Function
display_market_news
Display relevant market news and updates
app.py:772
↓ 1 callers
Function
display_model_performance
Display ML model performance metrics
app.py:607
↓ 1 callers
Function
display_price_comparison_table
Display yesterday vs today vs tomorrow price comparison
app.py:418
↓ 1 callers
Function
display_price_trend_chart
Display interactive price trend chart
app.py:458
↓ 1 callers
Function
display_technical_analysis_charts
Display technical analysis indicators
app.py:561
↓ 1 callers
Function
display_welcome_screen
Display welcome screen with app information
app.py:222
↓ 1 callers
Method
generate_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 callers
Method
generate_market_summary
Generate a concise market summary
services/openai_service.py:134
↓ 1 callers
Method
get_farming_recommendations
Get AI-powered farming and business recommendations
services/openai_service.py:59
↓ 1 callers
Method
get_feature_importance
Get feature importance from the trained model
models/ml_predictor.py:111
↓ 1 callers
Method
get_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 callers
Method
get_market_news
Get relevant market news and updates
services/data_service.py:216
↓ 1 callers
Method
get_relevant_schemes
Get government schemes relevant to the crop and location
services/government_schemes.py:10
↓ 1 callers
Method
get_scheme_application_guide
Get step-by-step application guide for a scheme
services/government_schemes.py:236
↓ 1 callers
Method
get_scheme_details
Get detailed information about a specific scheme
services/government_schemes.py:26
↓ 1 callers
Method
get_weather_data
Fetch weather data that affects crop prices
services/data_service.py:156
↓ 1 callers
Function
initialize_services
()
app.py:30
↓ 1 callers
Function
main
()
app.py:102
↓ 1 callers
Method
predict_future_prices
Predict prices for the next few days
models/ml_predictor.py:89
↓ 1 callers
Method
predict_prices
Make price predictions using the trained model
models/ml_predictor.py:80
↓ 1 callers
Method
prepare_features
Prepare features for ML model training
utils/data_processor.py:70
↓ 1 callers
Function
stop_speech_component
Add a stop speech button
app.py:90
↓ 1 callers
Method
train_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
Method
calculate_market_metrics
Calculate various market metrics for analysis
utils/data_processor.py:101
Method
calculate_prediction_confidence
Calculate confidence score for predictions
models/ml_predictor.py:127
Method
generate_market_signals
Generate trading signals based on predictions
models/ml_predictor.py:151
Method
get_seasonal_insights
Get seasonal insights for specific crops
utils/data_processor.py:124