Create gridfinity items with build123d
  • Python 99.8%
  • Shell 0.2%
Find a file
Ruud fc29ac6b9a
Merge pull request #165 from Ruudjhuu/move_to_basedpyright
use basedpyright instead of mypy for typechecking
2026-02-27 13:52:04 +01:00
.github use basedpyright instead of mypy for typechecking 2026-02-27 12:02:31 +01:00
.vscode remove unescesarry launch.json 2026-02-26 14:40:03 +01:00
docs use basedpyright instead of mypy for typechecking 2026-02-27 12:02:31 +01:00
src/gridfinity_build123d use basedpyright instead of mypy for typechecking 2026-02-27 12:02:31 +01:00
tests update base tests 2026-02-26 14:40:27 +01:00
tools add pre-commit hooks 2024-03-08 14:36:54 +01:00
.coveragerc add pre-commit hooks 2024-03-08 14:36:54 +01:00
.gitignore add pre-commit hooks 2024-03-08 14:36:54 +01:00
.pre-commit-config.yaml add markdown exclusion for trailing whitespaces 2025-10-04 13:21:43 +02:00
.python-version use uv for running tests 2026-02-26 11:33:49 +01:00
.readthedocs.yaml add readthedocs config 2023-12-24 14:50:02 +01:00
LICENSE Initial commit 2023-10-04 19:46:42 +02:00
mypy.ini add pre-commit hooks 2024-03-08 14:36:54 +01:00
pyproject.toml use basedpyright instead of mypy for typechecking 2026-02-27 12:02:31 +01:00
README.md Update README.md 2025-10-04 13:15:10 +02:00
uv.lock use basedpyright instead of mypy for typechecking 2026-02-27 12:02:31 +01:00

gridfinity_build123d

Gridfinity (design by Zack Freedman) is a grid based storage solution. This repository contains python modules to create gridfinity capable objects in build123d.

See the documentation for more information and examples.

Installation

python3 -m pip install git+https://github.com/Ruudjhuu/gridfinity_build123d

Usage

import build123d
from gridfinity_build123d import (
    BaseEqual,
    Bin,
    Compartment,
    CompartmentsEqual,
)

part = Bin(
    BaseEqual(grid_x=2, grid_y=1),
    height_in_units=3,
    compartments=CompartmentsEqual(compartment_list=[Compartment()]),
)

build123d.export_stl(part, "bin_2x1x3.stl")
build123d.export_step(part, "bin_2x1x3.step")

Credits

@zackfreedman -- gridfinity
grizzie17 -- gridfinity-refined