github.com/CadQuery/cadquery

A python parametric CAD scripting framework based on OCCT

Open this visualization on its own page →

Contributors

54

Lines of Code

2,246

From

2013-04-14

To

2021-02-12

About CadQuery/cadquery

CadQuery is a Python library for building parametric 3D CAD models through scripting rather than graphical interfaces. It wraps the OpenCASCADE geometry kernel to provide intuitive commands for creating complex shapes, from basic primitives to advanced features like fillets, lofts, and parametric curves. The library is designed to be lightweight and integrable into servers or scientific workflows, while also offering visualization capabilities through built-in tools, Jupyter notebooks, or the dedicated CQ-editor IDE.

The framework excels at generating reusable, customizable models as plain-text Python scripts that can be easily modified by end users without CAD expertise. CadQuery can export designs in multiple formats including the high-quality loss-less formats STEP and DXF, as well as STL, VRML, AMF, and 3MF for various downstream uses. It supports building nested assemblies from individual parts and includes a graphical debugger and model inspector within CQ-editor.

CadQuery is available through conda and pip (with limitations on Linux distributions and Python versions 3.9-3.12 for pip), and is licensed under the Apache 2.0 license. The project welcomes community contributions across documentation, bug reports, code fixes, and feature development, with professional consulting available from core maintainers.

Share this video