This folder contains a working example that generates a STEP model for: Endcaps for common tubes (PVC/aluminum) with configurable wall thickness and ribs.
The intent is that you can run the code here to emit a STEP file, open it in a CAD viewer, and/or import it into your slicer to 3D print and iterate.