cadbuildr-gridfinity
Summary
The Gridfinity modular storage
system (Zack Freedman, 2022) as a CADbuildr library
(pip install cadbuildr-gridfinity, import cadbuildr.gridfinity): parametric
bins, baseplates for any drawer, tool-holder inserts and lids, all typed
@part / @assembly library items that stand on each other through a
GridfinityFoot / GridfinitySocket interface pair and connect.
Dimensions follow the community reference
Gridfinity Rebuilt
(kennetek, MIT), modelled here from its published numbers (no code copied):
42 mm grid, 7 mm height unit, bin outer 42 n - 0.5 mm (0.25 mm clearance),
base profile 0.8 mm 45° / 1.8 mm vertical / 2.15 mm 45° (4.75 mm) plus a
2.25 mm bridge, baseplate pocket 0.7 / 1.8 / 2.15 mm on a 0.35 mm straight,
stacking lip 0.7 / 1.8 / 1.9 mm, Ø6.5 × 2.4 mm magnet holes and Ø3 mm M3
screw holes 8 mm from the cell edges. Every number, with its source, is in
cadbuildr/gridfinity/spec.py.
A Vite + React-Three-Fiber generator renders bins and baseplates live in the browser through the CADbuildr SDK.
Quickstart
pip install cadbuildr-gridfinity # pulls cadbuildr-foundation>=0.3.0,<0.4.0
from cadbuildr.foundation import Assembly, show
from cadbuildr.gridfinity import (
GridfinityBin, GridfinityDrawerBaseplate, GridfinityHexBitInsert, place_bin,
)
plate = GridfinityDrawerBaseplate(drawer_width=180, drawer_depth=130, style="magnet") # 4 x 3, 6 / 2 mm padding
drawer = Assembly()
drawer.ground(plate)
place_bin(drawer, GridfinityBin(units_x=2, units_y=2, units_z=6, dividers_x=1), plate, 0, 0)
place_bin(drawer, GridfinityHexBitInsert(), plate, 2, 0) # checked: on the plate, cells free, same pitch
assert [i for i in drawer.check() if i["severity"] == "error"] == []
show(drawer)
Or the ready-made demo (a 4 × 3 drawer with a mix of bins, inserts and a
stacked lid): python examples/demo_drawer.py, or in
CADbuildr Prototype open the folder and
press Play on examples/demo_drawer.py.
python -m cadbuildr.foundation.library manifest cadbuildr.gridfinity
echo '{"item": "gridfinity:GridfinityBin", "inputs": {"units_x": 3, "dividers_x": 2}}' \
| python -m cadbuildr.foundation.library eval
Catalogue
| Item | What it is | Key inputs |
|---|---|---|
GridfinityBin |
Open bin: a foot per cell, walls, open stacking lip, dividers, a finger scoop and an angled label tab (GR 15.85 mm / 36°) per row, magnet and screw holes, vase-mode (solid) variant, 21 mm half grid | units_x/y/z, dividers_x/y, label (none/full/left/center/right), scoop, stacking_lip, magnets, screws, holes_only_corners, wall, vase_mode, half_pitch |
GridfinityBlock |
Solid bin (riser / spacer / blank), optional lip recess on top | units_x/y/z, stacking_lip, magnets, screws |
GridfinityBaseplate |
Pockets to the GR baseplate profile; styles plain (5 mm frame), magnet (3.4 mm floor), weighted (6.4 mm floor, 21.4 mm weight pockets + ribs), screw (6.75 mm floor, Ø3.35 mm cross holes) |
units_x/y, style, half_pitch, pad_* |
GridfinityDrawerBaseplate |
Fills a drawer: floor(W/42) × floor(D/42) cells, padding split by fit_x/y (−1 / 0 / +1) |
drawer_width, drawer_depth, style, fit_x/y |
GridfinityHexBitInsert |
Grid of hex sockets for ISO 1173 bits (1/4 in = 6.35 mm, or 4 mm) | bit, depth, clearance, columns, rows |
GridfinityHoleInsert |
Round holes of any diameters, packed in rows | diameters ("6, 8, 10"), depth, clearance |
GridfinityCutoutInsert |
Shadow-board pocket from a 2D outline | outline ("x,y; x,y; ..."), depth |
GridfinityLid |
Feet that seat in a bin's lip under a plate; stackable adds a baseplate frame on top |
units_x/y, stackable |
GridfinityDrawer |
Drawer baseplate + items from a layout string ("bin 2x2x6@0,0; hexbit 1x1x3@2,0") |
drawer_width/depth, style, layout |
GridfinityDemoDrawer |
The 4 × 3 demo drawer | style |
Helpers: place_bin, stack_on, parse_layout, tile_layout (split a big
plate into printable tiles), drawer_fit, and spec (dimensions, profile
cross-sections, seat offsets, analytic volumes). GridfinityBox is an alias
of GridfinityBin (the cq-gridfinity name).
Interfaces: GridfinitySocket (female, +Z up) at every pocket floor
(cell_<i>_<j>, i along +X, j along +Y from the corner cell), on top of
every bin with a lip (stack_<i>_<j>, 0.35 mm below the body top where a
stacked base comes to rest) and on stackable lids; GridfinityFoot (male,
+Z down) under every bin's first cell (foot). The mate rule is rigid and
requires the same pitch.
Tags
cad, python, library, gridfinity, storage, organizer, 3d-printing, parametric, open-source
Status
yellow
Guidelines
- Every dimension comes from
spec.py, which cites Zack Freedman's spec or Gridfinity Rebuilt per constant; values the sources do not give are listed under Estimated there and in the docstrings. Model from the published numbers; never copy the reference's code. - Bins stand on plates by
connect(place_bin/stack_on), never by coordinates. - Bad inputs raise a named
GridfinityErrorsubclass (GridSizeError,OptionConflictError,FitError,OutlineError,LayoutError), never a silent clamp. Findings that are not errors (thin walls, oversize plates) are issues from a__checks__hook; never overridecheck(). - Geometry tests check boxes, profiles and analytic volumes without a
kernel; with
CADBUILDR_KERNEL_API_BASE_URLset they also mesh the real solids and compare volumes. - Keep
github-io/working when the API moves (buildPythonSourceingithub-io/src/main.tsx), and rebuild the wheel it serves (pnpm run sync-starter-wheel).
Dependencies
Upstream
cadbuildr-foundation>=0.3.0,<0.4.0(parts, library registry, interfaces andconnect,__checks__)
Downstream
- The Gridfinity Generator site (Pyodide wheel in
github-io/public/local-starter/) - CADbuildr cloud / Prototype library catalogue (entry point
cadbuildr.libraries: gridfinity)
Develop
uv venv && uv pip install -e . pytest
uv run pytest -q # analytic + operation-level geometry
CADBUILDR_KERNEL_API_BASE_URL=http://localhost:8087 uv run pytest -q # + real solids
eval/iou_eval.py compares the base against an OpenSCAD render of Gridfinity
Rebuilt (needs OpenSCAD and a checkout of the reference).
Deploy the GitHub Pages generator (optional)
The site uses the CADbuildr SDK browser flow
— a short-lived session token is minted client-side using only the
publishable half of a partner key. See github-io/README.md.
License
MIT (see LICENSE). Gridfinity is Zack Freedman's open design; Gridfinity
Rebuilt is © kennetek, MIT.
Metadata
Release files for cadbuildr-gridfinity 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cadbuildr_gridfinity-0.2.0.tar.gz | 3.3 MB | Without provenance | Details for cadbuildr_gridfinity-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cadbuildr_gridfinity-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for cadbuildr_gridfinity-0.2.0-py3-none-any.whl |
Total release size: 3.3 MB
Release files / cadbuildr_gridfinity-0.2.0.tar.gz
| Download URL | cadbuildr_gridfinity-0.2.0.tar.gz |
|---|---|
| Size | 3.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f22c6c8a3835c88b8522816a7acb99422a799af1a6896195ce713b7536182b3
|
|
BLAKE2b-256 checksum How to use checksums |
850c17e3e47f2ca9a4502b3519940b78079a42fa00ab2366b51cbb23d3fa4990
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.19
|
Release files / cadbuildr_gridfinity-0.2.0-py3-none-any.whl
| Download URL | cadbuildr_gridfinity-0.2.0-py3-none-any.whl |
|---|---|
| Size | 36.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7506e77469c097edb3e383f9eaa5a8ea4f2b646fe13ad2b1d4b501992489001a
|
|
BLAKE2b-256 checksum How to use checksums |
819b469c1b7e88bcdfa9789c5d418a3bc048004eb7ac0c04e53c42b154ece28c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.19
|
Security for cadbuildr-gridfinity 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.