Skip to main content

b3dkit

Utilities for build123d parts that have to be printed and assembled: splitting parts too big for the bed, snapping them together, fastening them, and venting them.

All linear dimensions are in millimeters and all angles are in degrees, matching build123d.

Installation

pip install b3dkit

Requires Python 3.11+ and build123d 0.11+. To run the __main__ demo in each module, which previews parts in VS Code, install the viewer extra:

pip install b3dkit[viewer]

What's in it

dovetail Splits a Part into two that slide together with tight tolerances, for parts larger than your build volume. Includes a "snugtail" style suited to 3D printing, which wraps three sides for a large friction and glue surface.
click_fit A tapered divot that prints and assembles better than a half sphere, letting parts click into place.
twist_snap A connector and socket that lock with a twist, for joints meant to be opened repeatedly.
ball_socket A ball mount and matching socket.
bolt_fittings Bolt holes, countersinks, nut traps and heat-set insert recesses, sized for M3 by default.
hexwall A honeycomb of hexagonal holes, flat or wrapped around a cone or cylinder, for venting and lightening.
basic_shapes Rounded, polygonal, diamond and teardrop cylinders, plus the trigonometry helpers that place them.
antichamfer Extends a face outward with a taper, like a foot or flat crown moulding.
slide_box, high_top_slide_box Boxes with sliding lids.
Point A lightweight 2D point with the geometry helpers the rest of the library needs.

Example

from build123d import Align, Box, BuildPart, Mode
from b3dkit import DovetailStyle, Point, dovetail_split

with BuildPart(mode=Mode.PRIVATE) as oversized:
    Box(50, 40, 50, align=(Align.CENTER, Align.CENTER, Align.MIN))

# split it into a mating pair that fits the bed
tail, socket = dovetail_split(
    oversized.part,
    Point(0, -20),
    Point(0, 20),
    style=DovetailStyle.SNUGTAIL,
)

Documentation

Full documentation, including a generated API reference, is at b3dkit.readthedocs.io.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

History

b3dkit began as fb-library, a way to isolate common utilities from Fender-Bender. It outgrew that project, and was renamed during a rewrite that reworked names and usage to feel closer to native build123d.

License

Licensed under the terms of the MIT license.

Metadata

Release files for b3dkit 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for b3dkit 0.5.3
File Size Uploaded Provenance Actions
b3dkit-0.5.3.tar.gz 257.8 kB With provenance Details for b3dkit-0.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for b3dkit 0.5.3
File Interpreter ABI Platform Actions
b3dkit-0.5.3-py3-none-any.whl Python 3 none any Details for b3dkit-0.5.3-py3-none-any.whl

Total release size: 296.9 kB

Release files / b3dkit-0.5.3.tar.gz

Download URL b3dkit-0.5.3.tar.gz
Size 257.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d6b874e18267e5716afd9520012c48dda9555539784ccc230a8ec02d164f59fd
BLAKE2b-256 checksum
How to use checksums
6dd4dbf0128fd1292b5ce63183f8e9dc5c35736f5fbe976a16f871d8094050cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / b3dkit-0.5.3-py3-none-any.whl

Download URL b3dkit-0.5.3-py3-none-any.whl
Size 39.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
becb1af37013f63cbeb12a4a6c6e17c431a56a50226f0554df989c0583a66591
BLAKE2b-256 checksum
How to use checksums
690cb4be06ef8a334c9feeea945dda8614955284dfbe08a45e95a89f5deb47c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Security for b3dkit 0.5.3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for b3dkit-0.5.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page