I'm trying to write a small script that helps me automate the creation of walls and any other wall-like segment in Blender. I wanted to use a profile curve or mesh as a base and then extrude it by X amount, adding edge loops if necessary. I find it really hard to explain what exactly I'm looking for, so I found some pictures online:
https://us.v-cdn.net/5021068/uploads/editor/sh/qkit5a52k0dx.gif
https://static.schoolofmotion.com/dfdbbe22-cebf-41c4-898d-177e86f200ad/extrude_object_hierarchical.gif
How can I select a curve, or profile mesh, and then extrude it via Python?