cadbuildr.tslot
Summary
T-slot aluminium framing (80/20 style) on CADbuildr foundation and
cadbuildr-frames: real T-slot cross-sections from catalog data, connectors
with catalog part numbers (T-nuts, button-head screws, anchor fasteners,
inside-corner and gusseted brackets, joining plates, end caps), butt-jointed
frames with the hardware placed for you, one-liner boxes and tables, a bill
of materials you can order from, and checks.
Tags
cad, python, t-slot, 80/20, aluminium-extrusion, framing, frames, connectors, bom, catalog, assembly
Status
yellow
Guidelines
- Vendor catalogs are DATA (
cadbuildr/tslot/catalogs/c8020.py): every row records its public source URL, and any value the vendor does not publish is listed in the row'sapproximateddict with the reason. No vendor CAD files, drawings or images are used. Add Misumi / Bosch Rexroth / OpenBuilds as another data module +register_catalog. - One parametric section builder (
section.py) draws every profile from its series' slot data; nothing is a hand-written per-profile class. - Frames is the core:
TSlotFrameis acadbuildr.frames.Framewithcorner="butt"and theTSlotJointsconnector rule (the frames connector hook). Cut lengths come from the frames layout — one source of truth. - Fail loudly: a member landing between slots, non-perpendicular members,
an unknown part number or a profile too small for the requested size
raise
ValueErrornaming the members;frame.check()reports members too short for their hardware, nuts that do not fit and collisions. - Publish-first: depends on
cadbuildr-foundationandcadbuildr-framesfrom PyPI only.
Dependencies
Upstream
- cadbuildr-foundation (PyPI)
cadbuildr-frames>= 0.2.0 (connector hook; PyPI release pending)
Downstream
- None yet (to be added to the curated-libraries registry once on PyPI).
Usage
from cadbuildr import tslot
from cadbuildr.foundation import show
table = tslot.table(800, 500, 750, series="1010") # corner brackets + end caps
print(table.bom_table())
print(table.check()) # [] = OK
show(table)
box = tslot.box(600, 400, 300, series="1515", joints="anchor")
All one-liner sizes are OUTER dimensions in mm (X width, Y depth, Z height, standing on z = 0). Posts / legs run the full height, rails are cut to fit between them.
| Entry point | What you get |
|---|---|
tslot.box(w, d, h, series="1010", joints="anchor") |
12-member box: 4 posts, 4 + 4 rails, end caps on the exposed post ends |
tslot.table(w, d, h, series="1010", joints="corner_bracket", shelf_height=None, top_thickness=None) |
4 legs + top rails (+ shelf rails, + top panel), capped feet |
tslot.TSlotFrame(skeleton, profile="1010", joints=...) |
any skeleton of cadbuildr.frames segments (box_edges, rectangle, polyline, Line3D) |
tslot.extrusion("1515", 600) / TSlotExtrusion |
one cut length with slot anchors |
tslot.part("4119") |
one connector Part by part number |
tslot.profiles() |
the catalog's profile part numbers |
joints: "anchor" (anchor fastener in the rail end + counterbore
machining), "corner_bracket" (inside corner bracket, 2 screws + 2 T-nuts),
"gusset" (gusseted bracket) or None. series= takes a profile part
number ("1010", "1020", "1515", "40-4040"…); profile= is the same.
Frame methods
frame.bom()->BomRow(item, category, part_number, description, qty, cut_length, weight);frame.bom_table()renders it with totals (extrusion length per profile, connector / fastener counts, weight from catalog kg/m).tslot.totals(frame)returns the totals as a dict.frame.check(exact=False, strict=False)-> list ofProblem.frame.add_panel("top", thickness=6.35)-> a sheet on an outer face.frame.slot_anchor(member, "slot_top_0", at=100)-> an anchor to mate your own parts (stdlib'sTSlotNutmates on these too).- Inherited from frames:
cut_list(),cut_list_table(),members,junctions,connectors.
Anchors
Extrusions and frame members are built along local +X, profile u (width)
on +Y and v (height) on +Z. Anchors: end_a, end_b (outward +Z),
axis, and one per slot at the slot opening at the start of the material:
slot_<face>_<i> with face top (+v), bottom, left (-u), right,
i counted along the face; +Z = outward face normal, +X = along the
extrusion (stdlib's AluExtrusion convention).
Catalog coverage (80/20)
See cadbuildr/tslot/catalogs/c8020.py (source URL per row).
- Profiles: 1010, 1020, 1030, 2020 (10 series); 1515, 1530, 1545, 3030 (15 series); 20-2020, 20-2040, 25-2525, 30-3030, 40-4040, 45-4545. Size, area, weight, Ix / Iy are catalog values.
- Connectors (10 / 15 series, some 40): economy, standard, roll-in and drop-in T-nuts; button head screws; standard anchor fasteners; 2- and 4-hole inside corner brackets; gusseted brackets; straight / L / T joining plates; end caps for 1010, 1020, 1515.
Approximations
- 10 / 15 series slots: opening and lip are labelled catalog dimensions; undercut width, chamber depth and bottom width are the unlabelled catalog drawing dimensions read as those features (they reproduce the catalog section area within 1.5 % / 3.3 %).
- Metric slots: 80/20 does not publish them; opening / lip / undercut are typical values for the series' fastener and the depth is solved so the section area matches the catalog area.
- Multi-cell profiles: internal hollows are not published; the hollow between cells is sized so the area matches the catalog (2 x 2 profiles stay ~12 % heavy: listed in their rows). BOM weights always use catalog kg/m.
- Anchor counterbore position, bracket gusset web shape, T-nut letter
dimensions read from distributor tables: see each row's
approximated.
Not supported (yet)
- Leveling feet / casters, linear bearings and sliders, panel mounting hardware, end-tap / access-hole end fasteners.
- Joining plates as an automatic joint type (the parts exist:
tslot.part("4151")). - 45-degree / non-perpendicular joints; members off a slot line.
- Metric-series brackets other than 40-4336, metric end caps.
Example
examples/tslot_showcase.py builds a 1010 table with corner brackets and
end caps and a 1515 anchor-fastened box, and prints their BOMs.
User docs: tsjs/apps/documentation/pages/Foundation/Libraries/tslot.mdx.
Agent skill: SKILL.md.
Tests
cd py && uv run --frozen --package cadbuildr-tslot python -m pytest packages/cadbuildr/tslot/tests -q
Metadata
Release files for cadbuildr-tslot 0.1.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_tslot-0.1.0.tar.gz | 99.7 kB | With provenance | Details for cadbuildr_tslot-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cadbuildr_tslot-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cadbuildr_tslot-0.1.0-py3-none-any.whl |
Total release size: 136.7 kB
Release files / cadbuildr_tslot-0.1.0.tar.gz
| Download URL | cadbuildr_tslot-0.1.0.tar.gz |
|---|---|
| Size | 99.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
640b55f8e4016474fd8265b4e828712b3e7674feb91a2e70d3e5419bed25c5ed
|
|
BLAKE2b-256 checksum How to use checksums |
2ae7bb37343aca6c28e6920df91877a3618a8c5e5d488450cff0a57085541e4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logRelease files / cadbuildr_tslot-0.1.0-py3-none-any.whl
| Download URL | cadbuildr_tslot-0.1.0-py3-none-any.whl |
|---|---|
| Size | 37.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ed80da9a53cd66c5e28239553613ca57dc5ec717c106416c007ba950e3d7c05
|
|
BLAKE2b-256 checksum How to use checksums |
660e9fd7352999328e7d19de2629f5173a8d11790e001c34e607102bc15af47b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logSecurity for cadbuildr-tslot 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for cadbuildr_tslot-0.1.0.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 Nov 24, 2026.
Transparency logA 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.