Skip to main content

badcad

badcad-occt is a fork of wrongbad/badcad on PyPI. It adds an exact OCCT engine (set_engine("occt")) for true STEP files, fillets, chamfers, sweeps, and lofts. The import name is still badcad.

pip install "badcad-occt[occt]"

The extras are occt (the exact engine), text (pycairo), svg (svgelements), and all.

a jupyter based cad workflow

most of the hard work is done by

this project aims to focus on usability in a jupyter environment

specifically for creating and exporting functional parts

setup

pip install git+https://github.com/wrongbad/badcad.git
# optional dependencies (text + svg support)
pip install "badcad[all] @ git+https://github.com/wrongbad/badcad.git"

example

from badcad import *
plus = square(3, 1, center=True) + square(1, 3, center=True)
p_lil = plus.offset(-0.4, 'round')
p_big = plus.offset(+0.4, 'round')
p_big.extrude_to(p_lil, 1)

plus

from badcad import *
deathstar = sphere(r=1) - sphere(r=0.5).move(1.2,0,0)
deathstar.stl('deathstar.stl')
deathstar.rotate(y=-45, z=45)

deathstar

from badcad import *
bolt = threads(d=8, h=16, pitch=1) 
bolt += circle(r=5, fn=6).offset(1,'round').extrude(4).move(0,0,15)
bolt.align(x=0,y=0,z=0).rotate(x=-90)

bolt

from badcad import *
t = text('yo', font='monospace')
t = t.offset(1,'round').extrude(2) - t.extrude(2)
t.align(x=0)

txt

motivation

to escape openscad syntax - op wrapping and nesting is an editing nightmare compared to A + B.move(...) - C style

to escape openscad render times - manifold lib is 1000x faster for high-poly boolean ops

to enable easier prototyping of mesh algorithms in the CAD environment

Metadata

Release files for badcad-occt 0.2.0

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

Source distribution (sdist)

Source distribution for badcad-occt 0.2.0
File Size Uploaded Provenance Actions
badcad_occt-0.2.0.tar.gz 62.5 kB With provenance Details for badcad_occt-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for badcad-occt 0.2.0
File Interpreter ABI Platform Actions
badcad_occt-0.2.0-py3-none-any.whl Python 3 none any Details for badcad_occt-0.2.0-py3-none-any.whl

Total release size: 126.8 kB

Release files / badcad_occt-0.2.0.tar.gz

Download URL badcad_occt-0.2.0.tar.gz
Size 62.5 kB
Tags Source
SHA-256 checksum
How to use checksums
20ab5fc17d36b4792638e9a19f26121ff35561ab3fb6fdc7a54accf0089efd9b
BLAKE2b-256 checksum
How to use checksums
990f12fad68dc8913f540af7390747eeab3dab79545ced36966c41fdbbc98f5b
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 29, 2026.

Transparency log

Release files / badcad_occt-0.2.0-py3-none-any.whl

Download URL badcad_occt-0.2.0-py3-none-any.whl
Size 64.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64ad6b50a54d0ed3653ec48631d70fc16ac1fb76f47edcbb262f49ad50235e69
BLAKE2b-256 checksum
How to use checksums
310a1894c320ebab5944277ebb7a9ede2bfc501cca8cb7e13eff4f8769ca19f9
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 29, 2026.

Transparency log

Security for badcad-occt 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.

Full provenance

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

Select from 2 files

Attestation for badcad_occt-0.2.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 29, 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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full 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