This repository contains two case-study apps:
Quick start (Windows / cmd.exe)
- Clone and open the repo root
git clone <repo-url>
cd Kiran_Case_Study- Create and activate a virtual environment
python -m venv .venv
.venv\Scripts\activate- Install dependencies
pip install --upgrade pip
pip install -r requirements.txt- Run the trading MTM report (CLI)
python trading_case\run_mtm_report.py -i "trading_case\Trading Case Example Data.xlsx" -o "MTM_valuation_report.xlsx"- Run the Trading Streamlit UI
streamlit run trading_case\trading_app.py --server.port 8502- The UI looks for
trading_case\Trading Case Example Data.xlsxby default. You can upload your own.xlsxwithPriceandContractssheets.
- Run the Weather Streamlit UI
streamlit run weather_case\weather_app.py --server.port 8503- Upload an Excel with
DailyandMonthlysheets, then ask a natural-language question.
Troubleshooting
- If Streamlit complains
set_page_configmust be first, ensure you runstreamlit runfrom the project root; the repository's apps are configured correctly. - If a port is already used, pick another port (e.g.,
--server.port 8504). - If imports fail, confirm you are running commands from the repo root and your venv is activated.
Remove duplicate Streamlit entrypoint
- A duplicate file
trading_case/streamlit_app.pywas neutralized to avoid confusion; the canonical entrypoint istrading_case/trading_app.py.
Contact / Next steps
If you want, I can:
- Start both Streamlit servers for you and verify they load.
- Add example screenshots or make small UI improvements.

