Skip to main content

ironstream (Python bindings)

PyO3 bindings for the IronStream CAD geometry kernel — a from-scratch, zero-dependency Rust port of OpenCascade.

This is one of three consumption paths off the IronStream kernel (the other two — native Rust and a WASM/TypeScript export — live elsewhere). It mirrors the kernel's OCCT-shaped prelude, in the spirit of pyOCCT: symbols are available both flat and under OCCT-style submodules.

import ironstream as ist

box = ist.make_box(ist.Pnt(0, 0, 0), 20, 20, 20)
hole = ist.make_cylinder(5, 20)
part = ist.cut(box, hole)
print(part.volume())

with open("part.stl", "wb") as f:
    f.write(ist.write_binary_stl(part.mesh()))

pyOCCT-style namespaces are also available:

from ironstream.gp import Pnt
from ironstream.prim import make_box
from ironstream.algo import cut

Layout

Namespace Contents
ironstream.gp Pnt (Vec3, Point3), Ax1, Trsf
ironstream.topods Vertex, Wire, Face, Solid, Compound
ironstream.mesh TriMesh, BBox
ironstream.prim make_box/cylinder/cone/sphere/torus/prism/revol, MeshParams
ironstream.builder make_polygon, make_face, make_face_with_holes, transform
ironstream.algo fuse, cut, common, fuse_all
ironstream.io write_binary_stl, write_ascii_stl, write_step

Development

Requires a Rust toolchain and maturin. The kernel is pulled in as a local path dependency (../ironstream), so clone both repos as siblings.

uv venv
maturin develop            # builds the kernel + binding, installs into the venv
python -c "import ironstream; print(ironstream.make_box(ironstream.Pnt(0,0,0),1,1,1).volume())"

Build a distributable wheel with maturin build --release.

Releasing

Install from PyPI with pip install cadbuildr-ironstream (imported as import ironstream). To release: bump version in both pyproject.toml and Cargo.toml (and KERNEL_REF in .github/workflows/publish-pypi.yml to the kernel commit you built against), then push a vX.Y.Z tag. The workflow builds Linux (x86_64, aarch64), macOS (arm64, x86_64) and Windows wheels plus an sdist and publishes them via PyPI Trusted Publishing.

Pyodide / WebAssembly

The binding also builds as a Pyodide wheel (~140 KB) that runs the whole kernel in the browser — this powers the live demo on the IronStream project page:

chmod +x scripts/build_pyodide_wheel.sh
./scripts/build_pyodide_wheel.sh    # -> dist/cadbuildr_ironstream-*-emscripten_*_wasm32.whl

The script pins the full toolchain (pyodide xbuildenv 0.29.4, emscripten 4.0.9, rust nightly-2025-02-01 + pyodide's wasm-eh sysroot) and documents why each pin exists. Load it in a page with:

const { loadPyodide } = await import("https://cdn.jsdelivr.net/pyodide/v0.29.4/full/pyodide.mjs");
const py = await loadPyodide({ indexURL: "https://cdn.jsdelivr.net/pyodide/v0.29.4/full/" });
await py.loadPackage("<url of the .whl>");
py.runPython(`import ironstream as ist; print(ist.make_sphere(10).volume())`);

Metadata

Release files for cadbuildr-ironstream 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 cadbuildr-ironstream 0.2.0
File Size Uploaded Provenance Actions
cadbuildr_ironstream-0.2.0.tar.gz 4.9 MB With provenance Details for cadbuildr_ironstream-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for cadbuildr-ironstream 0.2.0
File Actions
cadbuildr_ironstream-0.2.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for cadbuildr_ironstream-0.2.0-cp39-abi3-win_amd64.whl
cadbuildr_ironstream-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details for cadbuildr_ironstream-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl
cadbuildr_ironstream-0.2.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for cadbuildr_ironstream-0.2.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
cadbuildr_ironstream-0.2.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for cadbuildr_ironstream-0.2.0-cp39-abi3-macosx_11_0_arm64.whl
cadbuildr_ironstream-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for cadbuildr_ironstream-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 7.4 MB

Release files / cadbuildr_ironstream-0.2.0.tar.gz

Download URL cadbuildr_ironstream-0.2.0.tar.gz
Size 4.9 MB
Tags Source
SHA-256 checksum
How to use checksums
370920b1c0d14ce6c132975d3620eb6418cb183d8071c0ca516c51b3cc1624d7
BLAKE2b-256 checksum
How to use checksums
a20abce92cdd8a76edbb875c0450c2bf046bb92373f023fca3f7163c4714ed5f
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 23, 2026.

Transparency log

Release files / cadbuildr_ironstream-0.2.0-cp39-abi3-win_amd64.whl

Download URL cadbuildr_ironstream-0.2.0-cp39-abi3-win_amd64.whl
Size 352.9 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b1f0fc2ed3fb0fc74ce9e547f235e79cc2172c91715663f61600dbfbbcb6fc43
BLAKE2b-256 checksum
How to use checksums
e59dd44edd8696cf75eff7860cbaaed8a9ee5c35d6d13c53cebf7ba5cb7c9e3f
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 23, 2026.

Transparency log

Release files / cadbuildr_ironstream-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL cadbuildr_ironstream-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 533.9 kB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
70e38306da76d4e4525fcda8dac6a2b4067069499b429f954237b74dcb3aeab3
BLAKE2b-256 checksum
How to use checksums
0f273f7b71086c6eab42f2c80017991fbda96447c02787fdc80ebaa916cea0ae
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 23, 2026.

Transparency log

Release files / cadbuildr_ironstream-0.2.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cadbuildr_ironstream-0.2.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 619.7 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
a22dc050fbe575ab8513d183d177cccf41b7c19bf7b07e63c7fda30e8662ad1f
BLAKE2b-256 checksum
How to use checksums
6580a1bfcb8434c28219dc8de34d06806556e72c3c982a964ba6222b206727ff
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 23, 2026.

Transparency log

Release files / cadbuildr_ironstream-0.2.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL cadbuildr_ironstream-0.2.0-cp39-abi3-macosx_11_0_arm64.whl
Size 461.9 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9df4f90b693f6ce5058db67004c3b8fc2ac2b7d8449b78b47eef5efb8c47c312
BLAKE2b-256 checksum
How to use checksums
5f010513df87ee41da8479f7b245b9caba719400493d0432339e9d7bf03a0bf6
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 23, 2026.

Transparency log

Release files / cadbuildr_ironstream-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL cadbuildr_ironstream-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 471.7 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9f646f0dcf412e3ca806cfdc767775008f2fcf08a435de715ff7a991309f0577
BLAKE2b-256 checksum
How to use checksums
e3ec0623581fffbbe47c53545459c61f431530ca428c89edfd4b1c4af6852b3b
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 23, 2026.

Transparency log

Security for cadbuildr-ironstream 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

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for cadbuildr_ironstream-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 23, 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