forge
An exact-arithmetic boundary-representation (B-rep) CAD kernel. Geometric and topological decisions use exact rational arithmetic (ℚ, ℚ[π], ℚ[√d]) or certified intervals; no result depends on a floating-point tolerance.
It ships as two PyPI packages:
forgekernel— the kernel, pure Python.forgekernel_rs— a native (Rust) build of the performance-critical routines, installed automatically when a wheel is available and returning the same results.
Capabilities
- Planar solids: rational linear algebra, plane-based B-rep, booleans, divergence-theorem mass properties.
- Quadrics (cylinder, cone, sphere, torus) with closed-form intersections.
- NURBS curves and surfaces; surface–surface intersection with complete branch detection and certified points.
- Procedural offsets and shells; edge blends (fillets); lofts.
- Exact volume, centroid, and inertia via the divergence theorem.
- STEP (AP203/AP214) import and export.
Design
A Python reference implementation defines the exact semantics. A Rust build provides the same operations for production use; each ported routine is cross-checked against the reference. Design notes and decisions are recorded in the gitcad repository (ADR-0018).
Layout
src/forgekernel/— the Python kernel.rust/forge-core/— the native build (forgekernel_rs).
Install
pip install forgekernel # pure Python
pip install forgekernel[rust] # add the native build
License: Apache-2.0. Source: https://github.com/gitcad-xyz/forge
Metadata
Release files for forgekernel 0.9.13
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 |
|---|---|---|---|---|
| forgekernel-0.9.13.tar.gz | 491.8 kB | With provenance | Details for forgekernel-0.9.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forgekernel-0.9.13-py3-none-any.whl | Python 3 | none | any | Details for forgekernel-0.9.13-py3-none-any.whl |
Total release size: 840.2 kB
Release files / forgekernel-0.9.13.tar.gz
| Download URL | forgekernel-0.9.13.tar.gz |
|---|---|
| Size | 491.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a0ab135686747d84c66ed8885471c1312e0b1f7d56ea1444bc1e882badc247e
|
|
BLAKE2b-256 checksum How to use checksums |
dae21e0c3ec2f9aa134ef80dff58465194824f1ea128034ce1832fbac9fab648
|
| 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 Jul 31, 2026.
Transparency logRelease files / forgekernel-0.9.13-py3-none-any.whl
| Download URL | forgekernel-0.9.13-py3-none-any.whl |
|---|---|
| Size | 348.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f40310af22d1d38dca394004b94ed78c297aaecd320ccbc3ec4b537930db19ce
|
|
BLAKE2b-256 checksum How to use checksums |
9e925d0e1f0fb534c5a34028ca9be9875644dbcf0c77581a1cb0fb6024b2b857
|
| 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 Jul 31, 2026.
Transparency logSecurity for forgekernel 0.9.13
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 forgekernel-0.9.13.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 Jul 31, 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.