Skip to main content

icadkit

A Rust-based Python reader for iCAD SX .icd files. Read saved part structure, coordinate frames, names and selected attributes; inspect native box/cylinder parameters; and extract embedded Parasolid geometry.

Supported workflows include:

icadkit is experimental. Unsupported geometry remains in the part inventory; unknown values and source ranges are preserved. Part frames, native primitive frames and embedded resource coordinates have separate contracts. Complete assembly geometry, inherited attributes and complete drawing reconstruction remain unsupported. Read the support boundaries and release notes.

Run icadkit view model.icd to open qualified native primitives and their part properties. The base viewer works without the preview extra.

Installation

The base reader supports standard GIL-enabled CPython 3.10–3.14. Wheel targets are Linux x86_64 (glibc 2.28+), Windows x86_64 and macOS ARM64 (11+):

python -m pip install icadkit

The native extension bundles parasolid-core and has no mandatory Python runtime dependencies. iCAD, Wine and an external SDK are not required. An explicit compatible catalog is needed only for schemas absent from the built-in profiles. Release files are available on the GitHub releases page.

For preview/GLB, install python -m pip install 'icadkit[preview]'. The optional OCCT dependency requires glibc 2.31+ on Linux; see preview requirements. To build from a source checkout or sdist, install Rust 1.88+ and a C linker, then run python -m pip install . (or '.[preview]').

Updating the package version

[workspace.package].version in Cargo.toml is the single release-version source. Both Rust crates inherit it, Maturin derives the Python package version from it, and icadkit.__version__ / the CLI use the installed package metadata. With Python 3.11+, Cargo and uv available, update it with one command:

python3 scripts/bump_version.py X.Y.Z
python3 scripts/bump_version.py --check --tag vX.Y.Z

Replace X.Y.Z with the intended release number. The command updates the workspace version, synchronizes Cargo.lock and uv.lock, and checks their consistency. On failure it restores all three files. Add --offline to use cached dependencies. Stable X.Y.Z and development X.Y.Z-dev.N versions are supported; Python metadata uses X.Y.Z.devN for the latter. --check does not modify the source or locks. CI checks the same rules and requires release tags to match the source version.

Use icadkit --version to check the installed package version and icadkit info to inspect its backend version. The parasolid-core and parasolid-kit dependency pins have their own versions and are updated separately. Usage guides describe capabilities without repeating the package version. Record version-specific changes in the changelog; retain the release numbers attached to historical notes and validation results.

Part structure, frames and attributes

import icadkit

doc = icadkit.read("assembly.icd")
parts = doc.read_parts()
print(parts.status, parts.diagnostics)

for part in parts.walk(include_root=False):
    print(part.name, part.parent_id, part.definition_id)
    print(part.comment, part.extra_info)
    print(part.placement.local_transform, part.placement.world_transform)

rows = parts.to_rows()  # JSON-compatible rows; not certified BOM quantities.

The reader supports the observed little-endian V7L7 part layout: hierarchy, names, comments, extended text and saved external reference names. Qualified V7L7 part frames use millimetres and are evaluated relative to the saved root frame. Qualified standalone primitive owners also expose geometry and saved entity appearance. The separate CSG API and uv run --extra preview icadkit view model.icd --csg evaluate qualified unions, differences and intersections of boxes, cylinders, prisms and profile extrusions, including saved single-leaf extrusion bodies. Unknown programs retain diagnostics without substitute geometry. The saved final body mode, view --saved-brep, also displays qualified V7L7/V8L3 final bodies and imported solids, including bounded spherical, conical and toroidal surfaces. V8L3 resource sharing preserves each occurrence's saved placement. An explicit schema catalog is needed when the exact built-in profile lacks a required type. Counted metadata framing also extends part inventories while preserving unknown records and diagnostics. Bounded binary attributes are preserved as raw owned records. The native viewer also displays qualified cones/frusta and full ring tori. The built-in exact V34 profile covers qualified toroidal resources without an external catalog.

Qualified millimetre frames and bounded native/saved geometry cover V7L6/V7L7 and V8L1/V8L2/V8L3, including internal mirrors. Signed occurrence orientation is separate from already placed geometry; see mirror semantics. Explicit external-reference resolution now composes qualified child and grandchild placements, including mirrors, through read_assembly() or icadkit view model.icd --reference-root /path/to/bundle. Saved names, resolved paths, hashes and missing/ambiguous references remain separate. Extended information is stored text, not interpreted typed engineering properties. Check each scope's status before relying on its values.

Embedded geometry

import icadkit

doc = icadkit.read("model.icd")
for resource in doc.resources:
    print(resource.resource_id, resource.encoding)
    geometry = doc.read_geometry(resource.resource_id)
    print(geometry.status, geometry.diagnostics)
    if geometry.brep is not None:
        print(geometry.brep.counts)
    geometry.require_complete("brep")  # Raises if this scope is incomplete.

inspect() reads leading structure. read() owns the input and indexes resources; decompression and geometry parsing happen on request. A complete resource B-Rep does not establish whole-model completeness. An empty resource list does not establish that a file contains no native geometry.

Paths accept strings or Path objects; bytes means file contents. Structured format errors derive from icadkit.IcadError; file access errors use OSError. See the API reference for schemas, limits and pagination.

Command line

icadkit info --json
icadkit inspect model.icd --json
icadkit parts assembly.icd --json
icadkit resources model.icd --json
icadkit extract model.icd RESOURCE_ID --output body.x_b --json
icadkit check model.icd --target geometry --resource RESOURCE_ID --json
# Requires the preview extra; use the independently known unit of the resource.
icadkit preview model.icd --resource RESOURCE_ID --source-unit m --output preview

Use an ID from resources in place of RESOURCE_ID. Extraction and preview refuse existing output paths. python -m icadkit provides the same commands. Preview requires a declared source unit; its GLB uses metres and resource-local coordinates, without part placement or saved appearance. --write-only --json exports without starting a server. CLI scope statuses and exit codes are explained in the reference.

License

icadkit is offered under PolyForm Noncommercial 1.0.0. Commercial licenses are available from UnRobotics Inc.. Dependencies retain their own licenses and copyright notices. Read the licensing guide, license notice and third-party notices for details.

Metadata

Release files for icadkit 0.3.11

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

Source distribution (sdist)

Source distribution for icadkit 0.3.11
File Size Uploaded Provenance Actions
icadkit-0.3.11.tar.gz 513.8 kB With provenance Details for icadkit-0.3.11.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for icadkit 0.3.11
File Interpreter ABI Platform Actions
icadkit-0.3.11-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for icadkit-0.3.11-cp310-abi3-win_amd64.whl
icadkit-0.3.11-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for icadkit-0.3.11-cp310-abi3-manylinux_2_28_x86_64.whl
icadkit-0.3.11-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for icadkit-0.3.11-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 3.3 MB

Release files / icadkit-0.3.11.tar.gz

Download URL icadkit-0.3.11.tar.gz
Size 513.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5ab1752df4d3456278ea080396aa8fe82349d4c526d7d348f2a2a3fa99099b4c
BLAKE2b-256 checksum
How to use checksums
cc6ebbad5b4ad83306f89bf3a71f43d10618846a1ed2113431f740509bac0354
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 Oct 27, 2026.

Transparency log

Release files / icadkit-0.3.11-cp310-abi3-win_amd64.whl

Download URL icadkit-0.3.11-cp310-abi3-win_amd64.whl
Size 849.7 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f306fc6a4bc14f8813eb412bd5970ac53e13811d78ce8dfcf59dc77a52d97874
BLAKE2b-256 checksum
How to use checksums
e37b956347fca99bb5e7c83be413ef8a92eb7ea69347113ea88a449517d96af3
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 Oct 27, 2026.

Transparency log

Release files / icadkit-0.3.11-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL icadkit-0.3.11-cp310-abi3-manylinux_2_28_x86_64.whl
Size 1.0 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
07e0d189e2203381242bd49287559f4a3925b8993f0f5f9a452443865d8010da
BLAKE2b-256 checksum
How to use checksums
b09e973d523e884d2208725cafe658c13f355d39a6a5849c0ea50de5dc22cef6
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 Oct 27, 2026.

Transparency log

Release files / icadkit-0.3.11-cp310-abi3-macosx_11_0_arm64.whl

Download URL icadkit-0.3.11-cp310-abi3-macosx_11_0_arm64.whl
Size 940.8 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b47cac47c666e9d2d6da622931f636e692695f0b6b295d72e03ce026b89e71b5
BLAKE2b-256 checksum
How to use checksums
862d1b4d8a72a8e331ce605abd9c925f2ede4999935731464209f6050592a802
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 Oct 27, 2026.

Transparency log

Security for icadkit 0.3.11

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 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for icadkit-0.3.11.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 Oct 27, 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