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.
| Library | Scope | Source | Docs |
|---|---|---|---|
| bd_warehouse | Fasteners, bearings, flanges, pipes, threads, sprockets | GitHub | RTD |
| bd_beams_and_bars | Structural beams and bars (Git install) | GitLab | Site |
| py_gearworks | Gears and drivetrains | GitHub | README |
| bd-vslot | V-Slot extrusion profiles | GitHub | RTD |
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) frommake_*builders so tests and assemblies stay consistent
Agents: when to reach for each library — AGENTS.md external part libraries.