Utilities Functions

Utilities Functions#

utils.py classes, methods, and modules

ogusa.utils#

ogusa.utils.read_cbo_forecast(lt_econ_url='https://www.cbo.gov/system/files/2025-03/57054-2025-03-LTBO-econ.xlsx', lt_budget_url='https://www.cbo.gov/system/files/2025-03/51119-2025-03-LTBO-budget.xlsx', ten_year_budget_url='https://www.cbo.gov/system/files/2025-01/51118-2025-01-Budget-Projections.xlsx', ten_year_macro_url='https://www.cbo.gov/system/files/2025-01/51135-2025-01-Economic-Projections.xlsx', lt_start_year=1995, lt_end_year=2055, st_start_year=2024, st_end_year=2035)[source]#

This function reads the CBO Long-Term Budget Projections document from https://www.cbo.gov/about/products/budget-economic-data#1 and then formats the relevant data for use with OG-Core.

Warning: CBO spreadsheets are not consistent across years so you may run into errors passing different URLs to this function.