Implement Blueprint Interface from Python API

Hi devs,
I want to implement a blueprint interface (like how you’d do it within the blueprint editor in the attached image) but from within the Python API. I cannot seem to locate how to do this in the API. Is there a way?