CadQuery is a Python module for scripting parametric 3D CAD with STEP, DXF, STL, and other exports, built on OpenCASCADE via OCP bindings.
Overview
CadQuery lets engineers describe models in Python scripts that stay close to natural design language. Parametric definitions make end-user customization straightforward, and outputs include lossless CAD formats plus mesh-oriented types.
It is intended primarily as an importable library without mandating a GUI, though CQ-Editor and JupyterLab provide interactive environments and built-in visualization can use tracé and VTK stacks. Installation paths include conda, pip wheels for OCP, Apptainer, or Docker/Podman images.
Features highlighted include fillets, lofts, assemblies of parts, and plain-text models runnable in a browser context. Community docs, examples, a cheatsheet, and mailing lists support adopters, with optional commercial consulting noted by maintainers.
Licensing is Apache 2.0 with scientific citation guidance via Zenodo.
Key features
- Parametric Python CAD API
- STEP DXF STL export
- Assembly composition
- OpenCASCADE OCP core
- CQ-Editor IDE
- Jupyter notebook support
- Built-in VTK visualization
- Conda and pip installs
Use cases
- Scripted mechanical parts
- Server-side CAD generation
- Engineering automation
- Notebook-based modeling