Foundation (Python)Overview

Foundation

Foundation (cadbuildr-foundation on PyPI) is the Python library every CADbuildr model is written in. A part is a Python class: sketches on planes, operations like extrusions and lathes, and assemblies made from parts. Because the model is code, it can be parametric, versioned in git, reused as a library, and written or edited by an AI agent.

Every CADbuildr product (the app, the plugins, the MCP server, the Playground) runs Foundation code, so learning it pays off everywhere.

Where to go

I want to…Go to
Install itInstall
Learn from scratchYour first part → first sketch → first assembly
Do a specific thingHow-to guides
Look up an APICheatsheet, Primitives, Operations, Sheet metal
See complete projectsExamples

Libraries built on Foundation

Reusable parts and helpers published as separate packages, for example cadbuildr-stdlib (fasteners and common components). Source for the public libraries and example projects is on github.com/cadbuildr.