Skip to main content

cq-jt

A JT reader and GLB exporter with a Python-independent Rust core and thin Python bindings.

Read product structure, part placements, materials and selected triangle meshes from JT 9.5, 10.0 and 10.3. Inspect container boundaries, decode ZLIB/XZ streams, resolve local external JT references, and retain source information and opaque data.

JT 10.6 is available as an explicit experimental opt-in. Compatibility with native JT 10.6 exports has not been verified. See compatibility and limitations.

Requirements and installation

Python 3.11 or later is required. This project is under development and has not been published to PyPI.

To build from a source checkout, install Rust 1.83 or later and uv, then run:

uv sync --locked --group dev
uv run python -m cq_jt --help

To install a locally built wheel, use python -m pip install /path/to/cq_jt-<version>-<tags>.whl. Wheel users do not need Rust, CadQuery, NumPy, Java, .NET or a CAD application. Locally verified wheel environments are Linux x86_64 with CPython 3.11–3.14; other platforms are not yet verified.

Quick start

import cq_jt as jt

scene = jt.read("assembly.jt")
print(scene.complete, len(scene.meshes), len(scene.instances))

buffers = scene.mesh_buffers(0)  # Explicit packed-array copies
print(buffers.positions.dtype, buffers.positions.shape)
print(buffers.triangles.dtype, buffers.triangles.shape)

report = jt.export_glb(scene, "assembly.glb")
print(report.instance_count, report.placed_triangle_count)

# Read and export in one call:
# report = jt.convert("assembly.jt", "another.glb")

File reads resolve external Partition references within the input file's parent directory by default. Use ResolverOptions(root=...) to select another allowed root, or enabled=False to disable external reads. Bytes-based and structure-only APIs do not open external files.

Missing units or colors require explicit supplements. Partial scenes require explicit export permission. Existing output files are protected by default. GLB output contains display triangles and approximate PBR materials; precise geometry, PMI interpretation and CAD editing history are outside the supported profile.

Command line

python -m cq_jt inspect part.jt --json
python -m cq_jt decode part.jt --json
python -m cq_jt structure part.jt --json
python -m cq_jt mesh part.jt --lod highest --json
python -m cq_jt convert part.jt part.glb --json

Documentation

Development

uv run pytest
cargo test -p jt-core --locked --features glb
uv run python scripts/build_python_release.py
python scripts/check_publication.py

The included tests and fixtures can run from a public checkout without acquired CAD data or proprietary tools.

License

MIT. Dependency licenses, Siemens format notices and other attributions are included in THIRD_PARTY_NOTICES.md and licenses/.

Metadata

Release files for cq-jt 0.3.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 cq-jt 0.3.0
File Size Uploaded Provenance Actions
cq_jt-0.3.0.tar.gz 136.5 kB With provenance Details for cq_jt-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for cq-jt 0.3.0
File Actions
cq_jt-0.3.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for cq_jt-0.3.0-cp311-abi3-win_amd64.whl
cq_jt-0.3.0-cp311-abi3-manylinux_2_35_x86_64.whl CPython 3.11 abi3 Linux glibc 2.35+ x86-64 Details for cq_jt-0.3.0-cp311-abi3-manylinux_2_35_x86_64.whl
cq_jt-0.3.0-cp311-abi3-manylinux_2_35_aarch64.whl CPython 3.11 abi3 Linux glibc 2.35+ ARM64 Details for cq_jt-0.3.0-cp311-abi3-manylinux_2_35_aarch64.whl
cq_jt-0.3.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for cq_jt-0.3.0-cp311-abi3-macosx_11_0_arm64.whl
cq_jt-0.3.0-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for cq_jt-0.3.0-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 4.2 MB

Release files / cq_jt-0.3.0.tar.gz

Download URL cq_jt-0.3.0.tar.gz
Size 136.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4598d5eb2f0dd4eb77a01d292c8820f11f0af975922444bb81264e8ef62559a7
BLAKE2b-256 checksum
How to use checksums
c00628fd4b59d68d8ed10b1ec24b6ee7e4db5d70e55921f154a0b183f2cac9cb
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 7, 2026.

Transparency log

Release files / cq_jt-0.3.0-cp311-abi3-win_amd64.whl

Download URL cq_jt-0.3.0-cp311-abi3-win_amd64.whl
Size 714.9 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
9b81826e372485bae843c0c8a1fdd2c9ccea61f43de471360688dcb9def27e0d
BLAKE2b-256 checksum
How to use checksums
934fcc9fc2c90713d2e71d29cfddd5bfce44ad5ee334f60daf4d71699c9ce326
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 7, 2026.

Transparency log

Release files / cq_jt-0.3.0-cp311-abi3-manylinux_2_35_x86_64.whl

Download URL cq_jt-0.3.0-cp311-abi3-manylinux_2_35_x86_64.whl
Size 889.7 kB
Tags CPython 3.11 Linux glibc 2.35+ x86-64 abi3
SHA-256 checksum
How to use checksums
26112ce197b55ce99b6e9e229fa1dce3b8691f1e8e8ad14c49894791eb279b92
BLAKE2b-256 checksum
How to use checksums
9766ff17d7c72fa665606cb5b9c4eed54eb88ec64fe93b5c642c2ba8c280fb30
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 7, 2026.

Transparency log

Release files / cq_jt-0.3.0-cp311-abi3-manylinux_2_35_aarch64.whl

Download URL cq_jt-0.3.0-cp311-abi3-manylinux_2_35_aarch64.whl
Size 865.5 kB
Tags CPython 3.11 Linux glibc 2.35+ ARM64 abi3
SHA-256 checksum
How to use checksums
bf904e2f9e1f6cc0fbb87ff1801d9a4d469d543f8b6566ee1391b684ecac79dd
BLAKE2b-256 checksum
How to use checksums
c5b29554dfbda7a0e01499aec30456c53b0a797dc8d57e39ceb3dd6de1e97c2e
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 7, 2026.

Transparency log

Release files / cq_jt-0.3.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL cq_jt-0.3.0-cp311-abi3-macosx_11_0_arm64.whl
Size 808.9 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3e13f788f54813a7fc3344ace0a178a6c48f439261a8c7709bcdf519b1861cef
BLAKE2b-256 checksum
How to use checksums
41784cba1ef41b64f2b7ac0775d5fd193115cdf4116cca7946ce16766693fd2c
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 7, 2026.

Transparency log

Release files / cq_jt-0.3.0-cp311-abi3-macosx_10_12_x86_64.whl

Download URL cq_jt-0.3.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 825.0 kB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ade2d9e4adde7c53953b8e85c7f9890184bf728c16f3a8474adbf67e895b3414
BLAKE2b-256 checksum
How to use checksums
7840a28603c58020bc3a8ed64461c256dd62e8db9729b4ee1fe9979669efa4e3
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 7, 2026.

Transparency log

Security for cq-jt 0.3.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 cq_jt-0.3.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 7, 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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

6 release files Full provenance

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