skillfed

cadquery-ocp

Python wrapper for Open CASCADE Technology 3D geometry library based on the official CadQuery/OCP sources

cadquery-ocp v7.9.3.1.1 1.1M downloads/30d#4,421 on PyPI
Permissive license Apache-2.0 Active released

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-ocp

uv

uv add cadquery-ocp

poetry

poetry add cadquery-ocp

Installing 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

License :: OSI Approved :: Apache Software License

Tags

OCCT Python bindings3D geometry library PythonOpen CASCADE Technology wrapperCAD geometry operationscomputational geometry Pythonshape modeling library3D CAD kernel
3d-geometrycad-kernelocct-bindings

More Scientific/Engineering packages