CadQuery logo

CadQuery

Python parametric CAD scripting framework for building customizable 3D models and exporting STEP, DXF, STL, and more

Repository activity
  • Stars5.3k
  • Forks504
  • Open Issues465
License

Other

Languages
  • Python
  • Shell
  • Jinja
CadQuery screenshot

About CadQuery

CadQuery is a Python module for building parametric 3D CAD models without a GUI. Short, readable scripts produce high-quality models, so a single script can generate many customizable objects - well suited to server-side integration and scientific or engineering automation.

It supports advanced modeling such as fillets, curvilinear extrudes, parametric curves, lofts, and nested assemblies built from individual parts. Models export to lossless formats like STEP and DXF as well as STL, VRML, AMF, and 3MF, and the plain-text model format can be edited and run in a web browser.

CadQuery uses the OpenCASCADE kernel through the OCP wrapper and ships built-in visualization, with optional CQ-editor and JupyterLab GUIs. Install it with conda, mamba, pixi, or pip.

Key features

  • Parametric 3D CAD models built from Python scripts
  • Exports STEP, DXF, STL, VRML, AMF, and 3MF
  • Advanced modeling with fillets, lofts, and curvilinear extrudes
  • Nested assemblies from parts and other assemblies
  • Built-in visualization plus CQ-editor and JupyterLab

Details

On GitHub since
2018
Latest release
v2.7.0
Language
Python
Geometry kernel
OpenCASCADE via OCP wrapper
Install
conda, mamba, pixi, or pip