If you like OpenSCAD, but want to use Python, then PythonSCAD, which just updated to version 1.2 is what you are looking for:
Re:How to CAD Almost Anything
by GreyStache on Thursday November 19, 2026 @11:14PM
(#50570075)
I think you will be pleased by build123d. Especially the math mode feels pythonic to me.
Also works well in combination of your favourite AI: "using python and build123d in math mode generate a banana". I don't oneshot it, just plan the object in advance and lead it there step by step.
Cadquery https://cadquery.github.io might be worth trying.
Yes, the openscad language is weird. Considering switching to python.
Do you relate?