The Crop Market Prices Dashboard is a web application built using Streamlit that allows users to explore and analyze the market prices of various crops over time. The application fetches data from a MongoDB database and displays it in an interactive and user-friendly manner.
- Time Series Graph with Average Prices: Visualize the average price of crops over time.
- Time Series Graph with Districts: Visualize market-wise prices of crops.
- Update Data in Atlas: Update the crop market data in the MongoDB Atlas database.
You can access the deployed application using the following link: Crop Market Prices Dashboard
-
Clone the repository:
git clone https://github.com/yourusername/agri_startup.git cd agri_startup -
Install the required dependencies:
pip install -r requirements.txt
-
Set up MongoDB:
- Ensure you have a MongoDB instance running.
- Update the MongoDB connection details in mongo_dao.py.
-
Run the application:
streamlit run frontend/main.py
- Select a crop from the dropdown menu.
- Choose the date range using the slider.
- Click the "Submit" button to display the graph.
- Select a crop from the dropdown menu.
- Select one or more markets from the multiselect menu.
- Choose the date range using the slider.
- Click the "Submit" button to display the graph.
- Enter the password to access the update functionality.
- Click the "Update" button next to the commodity you want to update.
- The application will process the update and display a success or error message.
- main.py: The main Streamlit application file.
- backend: Contains backend processing scripts.
common/: Contains common utility scripts.dataset/metadata/: Contains metadata files for commodities, states, districts, and markets.requirements.txt: Lists the required Python packages.
- Streamlit
- Pandas
- MongoDB
- Selenium
- Plotly
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.
- Thanks to the developers of Streamlit, Pandas, and Plotly for their amazing libraries.
- Special thanks to the Agmarknet website for providing the crop market data.