A Python-based valuation toolkit for estimating intrinsic stock value using a multi-stage discounted cash flow (DCF) workflow. The repository combines live market data, operating forecasts, WACC automation, sensitivity analysis, and a reverse-DCF growth check into one modular pipeline.
This repository is designed to:
- pull historical financial statements from Yahoo Finance,
- build a 5-year operating forecast,
- calculate a live or estimated WACC,
- value the company using DCF math,
- stress-test the valuation with sensitivity matrices,
- infer the growth rate required to justify the current market price (reverse DCF).
app.py— terminal-based valuation pipeline orchestration.app1.py— Streamlit dashboard for interactive analysis.data_ingestion.py— downloads and normalizes financial statement data.operating_model.py— generates projected operating and cash flow outputs.wacc_automation.py— fetches market inputs and computes WACC.dcf_valuation.py— calculates enterprise value, equity value, implied share price, and upside/downside.reverse_dcf.py— runs a binary-search reverse DCF to estimate the growth rate implied by the market price.sensitivity_analysis.py— builds WACC vs. growth and WACC vs. exit multiple matrices.requirements.txt— project dependencies.
- Ingest historical financial data.
- Build the operating model and free cash flow projections.
- Calculate WACC using market inputs and fallback assumptions.
- Run the DCF valuation and sensitivity analysis.
- Compare the result to the current market price through reverse DCF logic.
pip install -r requirements.txtpython app.pyThis executes the full valuation flow with default inputs (currently centered on AAPL).
streamlit run app1.pyThe Streamlit app provides a more user-friendly workflow for entering a ticker, fetching baseline data, and running the valuation model interactively.
A live hosted version of the Streamlit interface is available on Render.
- Status: Live on Render
- App: https://institutional-intrinsic-valuation-engine.onrender.com
- The project relies on
yfinance, so an internet connection is required for live market data. - Some modules include institutional-style fallback assumptions when live data is incomplete or unavailable.
- This repository is best treated as a research / prototype valuation engine rather than a production-grade financial platform.
This project is licensed under the MIT License. See LICENSE for details.