Skip to main content

CadKit

CadKit desktop showing a CAD model

# project.py
import cadquery as cq
import cadkit as ck

PLATE_LENGTH = 60
PLATE_WIDTH = 24
PLATE_THICKNESS = 6
MOUNT_EDGE_DISTANCE = 10
MOUNT_HOLE_DIAMETER = 4.3
MOUNT_X = PLATE_LENGTH / 2 - MOUNT_EDGE_DISTANCE


def plate_body():
    # Local datum: centre of the bottom face. Dimensions are millimetres.
    return cq.Workplane("XY").rect(PLATE_LENGTH, PLATE_WIDTH).extrude(PLATE_THICKNESS)


plate = ck.Part(
    "plate",
    body=plate_body,
    manufacture=ck.FDM("PETG"),
    features={
        "mounting-holes": ck.Hole(
            diameter=MOUNT_HOLE_DIAMETER, depth=PLATE_THICKNESS, through=True,
            pattern=ck.PointPattern(((-MOUNT_X, 0), (MOUNT_X, 0))),
        ),
    },
)

assembly = ck.Assembly("bracket")
installed_plate = assembly.add("plate", plate)
assembly.fix(installed_plate)
PROJECT = assembly.as_project()

CadKit favours explicit design intent: named inputs drive local parts, parts own their manufacturing definitions, and assemblies own placement and relationships. The project-structure guide shows how to grow this into cohesive modules, with a runnable example and supported escape hatches.

Install

macOS and Linux — arm64 and x86_64:

curl -fsSL https://aurkakoak.github.io/cadkit/install.sh | sh

On macOS, open ~/Applications/CadKit.app. On Linux, launch CadKit from the application menu or run ~/.local/bin/cadkit-desktop. Python and the CAD libraries are included.

You can also download a DMG or Linux archive from Releases. Unsigned builds may show a macOS security warning.

Python — to run the example or use the CLI, install uv, then:

uv init --python 3.12 my-cad-project
cd my-cad-project
uv add cadkit-py
# Save the example above as project.py.
uv run cadkit --project project:PROJECT build all

To use this project's Python environment in the desktop app, install uv add 'cadkit-py[desktop]'. The extra supplies Python viewer dependencies; install the Electron app separately using the instructions above.

Agent skill:

npx skills add aurkakoak/cadkit --skill cadkit

Documentation · Run from source · Release process

Licence

CadKit's original code and documentation are licensed under Apache-2.0. Bundled third-party code retains its own copyright notices and licences; the included cq_warehouse fastener code is also Apache-2.0.

Metadata

Release files for cadkit-py 0.6.1

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

Source distribution (sdist)

Source distribution for cadkit-py 0.6.1
File Size Uploaded Provenance Actions
cadkit_py-0.6.1.tar.gz 180.4 kB Without provenance Details for cadkit_py-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cadkit-py 0.6.1
File Interpreter ABI Platform Actions
cadkit_py-0.6.1-py3-none-any.whl Python 3 none any Details for cadkit_py-0.6.1-py3-none-any.whl

Total release size: 338.4 kB

Release files / cadkit_py-0.6.1.tar.gz

Download URL cadkit_py-0.6.1.tar.gz
Size 180.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d15a66832d7182f30f2b8c6cbd26518d013708a7466e54eb11444e9b9dcd3451
BLAKE2b-256 checksum
How to use checksums
4ea7cd0550da18114335c4b4f51d9aef83bfe474bf030a94af439e2f64ecfd25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / cadkit_py-0.6.1-py3-none-any.whl

Download URL cadkit_py-0.6.1-py3-none-any.whl
Size 158.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82b52f83fe01a15d85b7a42bfbb23c2b3adad16af2fd8ffb17fc0c05730089c3
BLAKE2b-256 checksum
How to use checksums
11340e6999c116895902d82080e52f1347e05683a3e9b2108425ef781c3793bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for cadkit-py 0.6.1

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.

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files No provenance

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