cadquery-ocp
Python wrapper for Open CASCADE Technology 3D geometry library based on the official CadQuery/OCP sources
What it is and what it does
cadquery-ocp is a thin Python wrapper around the Open CASCADE Technology (OCCT) library, a mature 3D geometry kernel used in CAD and computational geometry applications. It exposes OCCT's modules directly to Python without adding extra functionality—its role is to provide access to OCCT's existing capabilities for shape modeling, boolean operations, and geometric algorithms.
The package is designed primarily to support the CadQuery project and aims to track OCCT releases closely. It ships as pre-compiled wheels for Python 3.10–3.14 on macOS (ARM and x86), Linux, and Windows, reducing installation friction. It depends on vtk (for visualization) and cadquery-ocp-proxy (a proxy layer), both of which are runtime dependencies.
Use it for:
- Building 3D CAD models programmatically using OCCT's shape and topology operations.
- Performing boolean operations (union, difference, intersection) on 3D geometries.
- Accessing OCCT's geometric algorithms for computational geometry tasks.
- Integrating OCCT geometry kernels into Python-based CAD or design automation tools.
- Prototyping 3D modeling workflows that will later be deployed in production CAD systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
cadquery-ocp provides Python bindings to the Open CASCADE Technology (OCCT) 3D geometry library, exposing OCCT's modules for computational geometry, CAD operations, and shape manipulation.
Yes, if you need direct access to OCCT's geometry capabilities from Python and are already using or considering CadQuery. The permissive license, active maintenance, and broad platform support (pre-built wheels) make it low-friction to add. No known vulnerabilities. Install only if you have a specific 3D geometry or CAD modeling task; it is not a general-purpose library.
Install
cadquery-ocp on PyPI
pip
pip install cadquery-ocpuv
uv add cadquery-ocppoetry
poetry add cadquery-ocpInstalling cadquery-ocp
Before you install
Medium install friction due to compiled wheels for multiple Python versions and platforms. Active maintenance with a recent release (78 days ago). Depends on vtk and cadquery-ocp-proxy, both of which may add setup complexity.
License in practice
Apache-2.0 is permissive; you can use this package in commercial and proprietary projects with minimal restrictions, provided you include a copy of the license and note any modifications.
Quickstart
pip install cadquery-ocp
import cadquery_ocp
# Access OCCT modules through the wrapper
Requires Python 3.10 or later (up to 3.14). Compiled wheels are provided for common platforms; other architectures may require building from source.
Verify before relying
- Specific OCCT version wrapped by this release (7.9.3.1.1 appears to be the package version, not necessarily the OCCT version).
- Whether typing stubs (cadquery-ocp-stubs) are required or optional for development.
- Performance characteristics and typical use patterns within the CadQuery ecosystem.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 2 — cadquery-ocp-proxy, vtk |
| Maintenance | actively maintained — 78 days since the last release |
| First released | |
| Downloads | 1,059,966/month — #4,421 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cadquery_ocp-7.9.3.1.1-cp310-cp310-macosx_11_0_arm64.whl; cadquery_ocp-7.9.3.1.1-cp310-cp310-macosx_11_0_x86_64.whl; cadquery_ocp-7.9.3.1.1-cp310-cp310-manylinux_2_31_aarch64.whl; cadquery_ocp-7.9.3.1.1-cp310-cp310-manylinux_2_31_x86_64.whl; cadquery_ocp-7.9.3.1.1-cp310-cp310-win_amd64.whl; cadquery_ocp-7.9.3.1.1-cp311-cp311-macosx_11_0_arm64.whl; cadquery_ocp-7.9.3.1.1-cp311-cp311-macosx_11_0_x86_64.whl; cadquery_ocp-7.9.3.1.1-cp311-cp311-manylinux_2_31_aarch64.whl; cadquery_ocp-7.9.3.1.1-cp311-cp311-manylinux_2_31_x86_64.whl; cadquery_ocp-7.9.3.1.1-cp311-cp311-win_amd64.whl; cadquery_ocp-7.9.3.1.1-cp312-cp312-macosx_11_0_arm64.whl; cadquery_ocp-7.9.3.1.1-cp312-cp312-macosx_11_0_x86_64.whl; cadquery_ocp-7.9.3.1.1-cp312-cp312-manylinux_2_31_aarch64.whl; cadquery_ocp-7.9.3.1.1-cp312-cp312-manylinux_2_31_x86_64.whl; cadquery_ocp-7.9.3.1.1-cp312-cp312-win_amd64.whl; cadquery_ocp-7.9.3.1.1-cp313-cp313-macosx_11_0_arm64.whl; cadquery_ocp-7.9.3.1.1-cp313-cp313-macosx_11_0_x86_64.whl; cadquery_ocp-7.9.3.1.1-cp313-cp313-manylinux_2_31_aarch64.whl; cadquery_ocp-7.9.3.1.1-cp313-cp313-manylinux_2_31_x86_64.whl; cadquery_ocp-7.9.3.1.1-cp313-cp313-win_amd64.whl
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
cadqueryCadQuery is a Python library for writing…
permissive · top 15,000 on PyPI
cadquery-ocp-novtkProvides Python bindings to the Open CASCADE…
permissive · top 15,000 on PyPI
ocp-tessellateConverts OCP (OpenCascade Python bindings) CAD…
permissive · top 15,000 on PyPI
cadquery-ocp-proxyA proxy package that routes optional…
permissive · top 5,000 on PyPI
ocp-gordonInterpolates networks of curves into smooth…
permissive · top 15,000 on PyPI
build123dbuild123d is a Python CAD framework for…
permissive · top 15,000 on PyPI
cascadioConverts STEP files to GLB (glTF binary) format…
unclear · top 15,000 on PyPI
rhino3dmrhino3dm provides Python bindings to OpenNURBS…
permissive · top 15,000 on PyPI
ocpsvgConverts between SVG path strings and…
unclear · top 15,000 on PyPI
PyGEL3DPyGEL3D provides Python bindings for a C++…
permissive · top 15,000 on PyPI