A Python CAD programming library for creating parametric 3D models using a scripting approach. Current version is 0.10.0, requiring Python >=3.10 and <3.14. It provides both algebra and builder modes for constructing solids, and is built on top of cadquery-ocp (OpenCascade Python bindings). Release cadence is irregular, with major versions around every few months.
pip install build123dNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a 10x10x10 box and subtracts a cylinder from its top face. Then exports the result as STL.
Change `shape.is_valid()` to `shape.is_valid`, `shape.is_null()` to `shape.is_null`, `shape.shape_type()` to `shape.shape_type`.
Use current names: `Solid` instead of `S`, `Face` instead of `F`, etc.
Either create a fresh virtual environment, or uninstall VTK and reinstall a compatible version: `pip uninstall vtk && pip install vtk==9.3.1`.
Install `pip install ocp_vscode` or use `export_stl`/`export_step` to save files.