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/V8L4, 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.14

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.14
File Size Uploaded Provenance Actions
icadkit-0.3.14.tar.gz 526.8 kB With provenance Details for icadkit-0.3.14.tar.gz

Built distributions (wheels)

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

Total release size: 3.6 MB

Release files / icadkit-0.3.14.tar.gz

Download URL icadkit-0.3.14.tar.gz
Size 526.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e6e856e76a3680a70ede57460cb1aaf05885c6849eb74602eff2a398c9011605
BLAKE2b-256 checksum
How to use checksums
ac09bbdc50a4e772f062135a6af2ffb94a5c89378ad9727fa111e6c244d81786
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 Nov 5, 2026.

Transparency log

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

Download URL icadkit-0.3.14-cp310-abi3-win_amd64.whl
Size 933.5 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
eee4baa925571dd6a3c937d364f29678ce3eedc660e1f000ce046f0ce6f05b60
BLAKE2b-256 checksum
How to use checksums
6420329169658814ebdc267d15feb3161993f7450b94b5c3fafc50c3144cc767
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 Nov 5, 2026.

Transparency log

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

Download URL icadkit-0.3.14-cp310-abi3-manylinux_2_28_x86_64.whl
Size 1.1 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
da6f95c6c24bf206a60ae26ae7d624b43ad1d2d14c1640997956530eaead563e
BLAKE2b-256 checksum
How to use checksums
e5d934ce42867f200ece7cacb21a322e1a03bd2023e271d1b004bfadb25c8566
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 Nov 5, 2026.

Transparency log

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

Download URL icadkit-0.3.14-cp310-abi3-macosx_11_0_arm64.whl
Size 1.0 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b18082c830e194ac3ec2de07d14199611a1f90b55404d88ce412793e87507e39
BLAKE2b-256 checksum
How to use checksums
f8b36b3ebe772f0f71b65046914ac1db5969d021b03a7e9ef03c9cc6c909db84
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 Nov 5, 2026.

Transparency log

Security for icadkit 0.3.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.

Full provenance

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

Select from 4 files

Attestation for icadkit-0.3.14.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 5, 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