Skip to main content

External part libraries

Community libraries extend build123d. Listed as commented-out optional dependencies in pyproject.toml — uncomment and run uv sync before importing.

Upstream index: build123d external libraries.

LibraryScopeSourceDocs
bd_warehouseFasteners, bearings, flanges, pipes, threads, sprocketsGitHubRTD
bd_beams_and_barsStructural beams and bars (Git install)GitLabSite
py_gearworksGears and drivetrainsGitHubREADME
bd-vslotV-Slot extrusion profilesGitHubRTD

Enable in this repo​

# "bd_warehouse>=0.2.0",
# "bd-vslot",
# "bd_beams_and_bars @ git+https://gitlab.com/experimentslabs/3d/bd_beams_and_bars.git",
# "py_gearworks @ git+https://github.com/GarryBGoode/py_gearworks.git",

Integration pattern​

Add thin wrappers in cad/parts/ that call library builders — do not reimplement ISO tables or catalog geometry.

  • Use simple=True (default) on bd_warehouse fasteners in tests unless modeled threads are required
  • Return .part (or equivalent) from make_* builders so tests and assemblies stay consistent

Agents: when to reach for each library — AGENTS.md external part libraries.