Skip to content

cadling — Installation

cadling requires Python 3.9+ and conda (for pythonocc-core and, on macOS, PyTorch).

Terminal window
# Create the conda environment (installs PyTorch via conda-forge)
conda env create -f environment.yml
conda activate cadling
# Install cadling in development mode
pip install -e ".[all]"
Terminal window
pip install -e ".[dev]" # pytest, black, ruff, mypy, pre-commit
pip install -e ".[cad]" # numpy-stl, trimesh, networkx
pip install -e ".[ml]" # transformers (PyTorch via conda only)
pip install -e ".[vision]" # transformers, easyocr, opencv-python
pip install -e ".[all]" # Everything above

The BRep backend and STEP geometry use pythonocc-core, which is only available through conda (not PyPI) and is included in environment.yml. Tests that need it are marked requires_pythonocc and skip automatically when it is absent.

cadling integrates ll_stepnet for STEP neural processing. It is installed as an editable dependency via environment.yml, or manually:

Terminal window
cd ../ll_stepnet
pip install -e .

Continue to Usage.