Skip to main content

ezexb

A read-only CAXA EXB parser with a Rust core, Python API and command-line tools. No CAXA installation is required.

Status: experimental. The reader supports a limited set of EXB layouts and returns explicit diagnostics for unsupported content. APIs may change before 1.0. Use it to extract supported data; check the read report before relying on a complete drawing.

Install

Requires GIL-enabled CPython 3.10 or newer. For a published release:

python -m pip install ezexb

To build from a source checkout, install Rust 1.83 or newer and run:

python -m pip install .

Prebuilt release wheels target Linux x86_64 and aarch64 (glibc 2.28+), Windows x86_64, and macOS Intel / Apple silicon. A source install requires a Rust toolchain. See development for an editable installation and tests.

Read a drawing

import ezexb

document = ezexb.read("drawing.exb", strict=False)
print("Complete:", document.report.complete)

for diagnostic in document.report.diagnostics:
    print(diagnostic.code, diagnostic.stream_path, diagnostic.span)

for entity in document.entities:
    if entity.kind == "Line":
        print(entity.geometry.start, entity.geometry.end)

strict=False requests a partial document. The default, strict=True, raises IncompleteReadError when required content cannot be read; the exception carries the same structured report. Unknown build profiles raise UnsupportedFeatureError in both modes. Input and resource errors always raise.

Coordinates are stored in each block's coordinate system, and physical units are not inferred. Use read_world() to expand a selected space. A complete report means completeness within the supported reader profile, not full EXB compatibility or CAXA display equivalence.

Command line

ezexb capabilities --json
ezexb read drawing.exb --partial --json
ezexb inspect drawing.exb --json
ezexb streams drawing.exb --sha256 --json
ezexb metadata drawing.exb --json
ezexb preview drawing.exb --output preview.bmp

List document.spaces to choose a space ID for world coordinates or an approximate SVG. For example, if the desired space has ID -7:

ezexb world drawing.exb --space=-7 --partial --json
ezexb svg drawing.exb --space=-7 --partial --output drawing.svg --json

read --partial can exit successfully with report.complete=false; inspect the JSON report in automation. Extraction commands refuse to overwrite existing files. preview extracts a cached BMP; svg generates an approximate drawing preview.

Supported data

Area Available data
Geometry POINT, LINE, CIRCLE, ARC, POLYLINE, stored NURBS and ELLIPSE parameters
Text and blocks TEXT, INSERT, attached attributes, attribute definitions
Fills and dimensions HATCH/SOLID boundaries and parameters; stored data and presentation for eleven dimension types
Symbols and callouts Selected roughness, geometric-tolerance, section and datum fields; part-number records and nested item presentations
Tables and views Stored general/hole-chart cells and layout, BOM header/row presentations, 2D view references and circular clips
Context Layers, linetypes, text styles, spaces and blocks
Inspection CFB streams, metadata, embedded BMP, decoded payloads and record headers

Support depends on the exact layout and build profile. Dimension/symbol construction, table/style resolution and regeneration, view placement/clipping, associativity, physical units, external references, native font layout and complete rendering remain unsupported. SVG uses approximate text and strokes; it does not regenerate hatch fills. A qualified zero-radius ARC pattern is retained as DegenerateArc with a diagnostic and is not drawn. Writing and DXF export are not provided.

Documentation

License

MIT; see LICENSE. This license covers ezexb's own code. Third-party drawings and vendor materials are not included in source or binary distributions.

Metadata

Release files for ezexb 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 ezexb 0.3.0
File Size Uploaded Provenance Actions
ezexb-0.3.0.tar.gz 198.2 kB With provenance Details for ezexb-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ezexb 0.3.0
File Actions
ezexb-0.3.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for ezexb-0.3.0-cp310-abi3-win_amd64.whl
ezexb-0.3.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for ezexb-0.3.0-cp310-abi3-manylinux_2_28_x86_64.whl
ezexb-0.3.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for ezexb-0.3.0-cp310-abi3-manylinux_2_28_aarch64.whl
ezexb-0.3.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for ezexb-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
ezexb-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for ezexb-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 3.3 MB

Release files / ezexb-0.3.0.tar.gz

Download URL ezexb-0.3.0.tar.gz
Size 198.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ff1897398ae536a419df188a4b16684605d45b268c1bfa89550c5ff8013100fd
BLAKE2b-256 checksum
How to use checksums
e23f172b2fed54b5df16330908e109dd7fca967eec41d86ef9b139d76e634a7b
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 28, 2026.

Transparency log

Release files / ezexb-0.3.0-cp310-abi3-win_amd64.whl

Download URL ezexb-0.3.0-cp310-abi3-win_amd64.whl
Size 547.6 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
833c06fee7f594e79f8a255e5ff90c23874cc0759a44ecc7cb44189eb21cd0a3
BLAKE2b-256 checksum
How to use checksums
dd15e85015cbdccbb2149544800eaa2c65126d41c19aed6779b56e4ac95cb70f
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 28, 2026.

Transparency log

Release files / ezexb-0.3.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL ezexb-0.3.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 668.0 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
bbb75b4e7c89a922286c5b26f3f89a7755d2adf13290623a3d2fc8cf5513762b
BLAKE2b-256 checksum
How to use checksums
64d1716705361d25191c989d7a2a85d02181197e045f59cdf551950630e1e538
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 28, 2026.

Transparency log

Release files / ezexb-0.3.0-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL ezexb-0.3.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 660.2 kB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
58879e3bc2c8b93a57945c8f73484471e2a2b6e18a38d71c734dcfb22cadf6b4
BLAKE2b-256 checksum
How to use checksums
9f094bef7e3993847594928b0df0f2862796f9a25cd7e7ac360980df64fd7f9f
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 28, 2026.

Transparency log

Release files / ezexb-0.3.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL ezexb-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
Size 623.4 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8187c97bbe1d19e28ea0a95cc42f4e21ebc4d6558eefb1459e0973b3651a4c9a
BLAKE2b-256 checksum
How to use checksums
b30ace9963d08c2657bcd5a29f781007f6e3d802f8afedd2411cccae640729dc
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 28, 2026.

Transparency log

Release files / ezexb-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL ezexb-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 634.7 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
38b0b2718100dfbdba754f4672bae2c0a50684e359ef595f8c18e907638b5e29
BLAKE2b-256 checksum
How to use checksums
8b1268d301258ba23dbf3506a14562a54a93bb9200c6eb9f4132708aaed09c8b
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 28, 2026.

Transparency log

Security for ezexb 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 ezexb-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 Oct 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