Python and linear curves

Is it possible to modify CurveLinearColor assets through Python? I’m trying to build a tool that automatically generates color curves and fills curve atlases, but I’m unsure how to programmatically add or edit keyframes in those color curve assets.