Skip to main content

parasolid-kit

A schema-aware parser for Parasolid X_T and X_B transmit files. A safe Rust core handles parsing and geometry mapping; Python exposes immutable typed models and a command-line interface. The project focuses on reading and preserving the transmitted structure for inspection and conversion pipelines.

Rust applications can use parasolid-core directly, without Python.

Features

  • Inspect headers and map supported topology, analytic geometry and NURBS to a typed source B-Rep.
  • Compare X_T/X_B documents after pointer remapping and reconstruct an unmodified parsed X_B document byte-for-byte.
  • Report structured diagnostics and enforce configurable resource limits.
  • Evaluate supported source curves/surfaces and sample curves without OCCT; resolve nested assembly placements without changing the source model.
  • Decode stored polylines and embedded mesh pools with an explicit named schema catalog, and view those selected records without OCCT.
  • Use optional OCCT conversion, validated STEP export, CadQuery shapes and a local viewer with face/edge source picking, body visibility and section views.

Installation

Python 3.10+ is required. The base package has no runtime dependencies:

python -m pip install parasolid-kit

For STEP export and the viewer, install the OCCT profile:

python -m pip install "parasolid-kit[occt]"

See installation for platform requirements, the separate CadQuery profile, downloaded wheels and source builds.

Quick start

For an input covered by a built-in profile:

parasolid-kit inspect model.x_b          # Header only; no schema catalog needed.
parasolid-kit check model.x_b            # Parse and check the source B-Rep.
parasolid-kit check model.x_t --json     # Structured report.
parasolid-kit compare model.x_t model.x_b

See geometry operations for evaluation, assembly occurrences, and stored geometry examples. The viewer accepts --assembly to display repeated/nested body placements and --stored-geometry --schema-dir schemas for selected stored mesh/polyline data.

The same workflow is available in Python:

from parasolid_kit import read_brep

parsed = read_brep("model.x_b")
print(parsed.summary.to_dict())
print(parsed.complete)
print(parsed.brep.diagnostics)

complete describes source B-Rep mapping. Geometry conversion and a native CAD file's saved configuration have separate requirements. Use check when completeness must affect the CLI exit code. See the Python API and CLI reference for lower-level operations and diagnostics.

Local viewer

To try the viewer from a source checkout with Rust 1.88+ installed:

python -m pip install ".[occt]"
parasolid-kit viewer model.x_t --source-unit mm

Choose the input's actual unit; it is never inferred. view is an alias. The command opens a local URL; Ctrl-C stops serving and keeps the generated files. Node.js and a CDN are unnecessary at runtime.

Viewer showing two boxes and the selected face's source ID, node and byte range

Project-authored synthetic two-body fixture, rendered with Linux/SwiftShader. See preview controls and saving, display limits and viewer development.

Supported inputs

Built-in profiles cover exact Onshape V30/V13/current, extracted iCAD and SolidWorks partition keys, five transmit-file keys (NX and the Parasolid 24 and 26 acceptance tests) and eight standard keys of Parasolid 8 to 16 and schema 25001 (NX, MicroStation, IronCAD, SolidWorks, Autodesk Inventor). Each has verified_subset coverage and is completed by its schema family; application user fields are read. A key with no exact profile is read with the schema family of its effective schema and base (another Parasolid build of a reviewed schema) and reports family_inferred coverage; its node types must still be covered by the family's merged declarations. Consult the support matrix for exact keys, families and geometry limits; matching a key does not guarantee that all records are supported. Other schemas or uncovered types need an explicit schema catalog.

Native CAD containers and SolidWorks delta application are outside the complete parser contract. Assembly structure (instances and their transforms) is returned beside the B-Rep; source geometry remains unplaced. OCCT conversion and the viewer can explicitly request instance placement. Parsing, OCCT conversion, STEP export and preview have separate coverage. See format support and limitations.

Documentation

Topic Guide
Setup and optional runtimes Installation
Python models, conversion and CLI API reference
External schema providers Schema catalogs
Supported inputs and geometry Support matrix
Profile sources and validation Built-in profiles
Release changes Changelog
Maintainer verification Release gates, corpus policy

License

The distribution is licensed under MIT AND Apache-2.0: the original implementation uses MIT, and adopted partial readers use Apache-2.0. See reader provenance and viewer notices.

Metadata

Release files for parasolid-kit 0.4.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 parasolid-kit 0.4.0
File Size Uploaded Provenance Actions
parasolid_kit-0.4.0.tar.gz 1.5 MB With provenance Details for parasolid_kit-0.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for parasolid-kit 0.4.0
File Actions
parasolid_kit-0.4.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for parasolid_kit-0.4.0-cp310-abi3-win_amd64.whl
parasolid_kit-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for parasolid_kit-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
parasolid_kit-0.4.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for parasolid_kit-0.4.0-cp310-abi3-macosx_11_0_arm64.whl
parasolid_kit-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for parasolid_kit-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 7.4 MB

Release files / parasolid_kit-0.4.0.tar.gz

Download URL parasolid_kit-0.4.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
6897fc627e1e01d7cdf0488b33e85f1684bd45ff0e9935d4ce60564e58d52767
BLAKE2b-256 checksum
How to use checksums
b656d68b3ce20558ac234e30226ce70e39ce1a442b7dc259c1f5546b30c235cf
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 28, 2026.

Transparency log

Release files / parasolid_kit-0.4.0-cp310-abi3-win_amd64.whl

Download URL parasolid_kit-0.4.0-cp310-abi3-win_amd64.whl
Size 1.4 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0be50a688c61ce5538ec44d3fc54b7129b61d8059ff394c43f199e64a78ad28a
BLAKE2b-256 checksum
How to use checksums
111e6aab27c2593b1f903e902ab71aaae71b129e0b258eadb982ef2732ca25fc
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 28, 2026.

Transparency log

Release files / parasolid_kit-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL parasolid_kit-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
a42d21c3d72667a79d1e9f9ffb95958d27a45e9012a6cfe95af1bcd2572bb5bd
BLAKE2b-256 checksum
How to use checksums
6eeacb99b1daa2dafb23d141500ee45cfd033abf6a69d675a2f04c68e012369f
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 28, 2026.

Transparency log

Release files / parasolid_kit-0.4.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL parasolid_kit-0.4.0-cp310-abi3-macosx_11_0_arm64.whl
Size 1.5 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2990ad629960daf8b35fb0e259aa173b3d6099ec74ee277551a4a87291b8e0c1
BLAKE2b-256 checksum
How to use checksums
f5f37e45e3573a89a93d0a76132a180b4ebeb912b1d2081e4bb8471986e69964
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 28, 2026.

Transparency log

Release files / parasolid_kit-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL parasolid_kit-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 1.5 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9dca8a735e8930caa3d6d82abff9e73afd6e5959582badb0d1b823af547e1f91
BLAKE2b-256 checksum
How to use checksums
527087648b8f5a0ed02f09f26a8c9bc596a15be0e7b9d0900caf637f3a217056
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 28, 2026.

Transparency log

Security for parasolid-kit 0.4.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 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for parasolid_kit-0.4.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 28, 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