quantlib.util.rates.make_term_structure

make_term_structure(rates, dt_obs)

rates is a dictionary-like structure with labels as keys and rates (decimal) as values. TODO: Make it more generic