Module: lib/lookup.py
Loads and queries the reference datasets used throughout the valuation. Designed for token efficiency — returns only the single relevant row (~200 tokens) instead of loading full files (~35K tokens).
Key functions
get_industry()
Look up industry averages for a given industry name and region.
Parameters:
industry_name— canonical Damodaran industry name (e.g., “Software (Internet)”)region—'US'or'Global'
revenue_growth_5y, pretax_operating_margin, sales_to_capital, aftertax_roc, cost_of_capital, beta, std_dev.
get_distribution()
Look up quartile distributions for an industry (Q1, median, Q3).
Parameters:
industry_name— canonical Damodaran industry name
revenue_growth_3y, pretax_operating_margin, sales_to_capital. Returns None if distribution data is not available for the industry.
get_country_erp()
Look up equity risk premium for a given country.
Parameters:
country— country name (e.g., “United States”, “India”)
equity_risk_premium, country_risk_premium, rating.
get_industry_by_ticker()
Look up which Damodaran industry a ticker belongs to.
Parameters:
ticker— stock ticker symbol
Reference data
All datasets are sourced from Damodaran’s data pages (January 2026 update).