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.

Files written before the compound-document format start with the signature CaxaEbForWindows. read() and read_bytes() recognise it and return the same Document type under the legacy profile: one model space of lines, circles, arcs, polylines, points and text.

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, construction 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 twelve 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
Cached display The display records CAXA cached with a symbol, part number, table, view, array or unknown class whose own fields are not decoded (CachedDisplay)
Context Layers, linetypes, text styles, spaces and blocks
Legacy files CaxaEbForWindows container versions 1050, 1060 and 1070: POINT, LINE, CIRCLE, ARC, POLYLINE and TEXT in one model space, with layers, palette colors, line styles and text styles
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. A CachedDisplay is what CAXA last drew for an entity, not its values. 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.4

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.4
File Size Uploaded Provenance Actions
ezexb-0.3.4.tar.gz 255.2 kB With provenance Details for ezexb-0.3.4.tar.gz

Built distributions (wheels)

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

Total release size: 4.4 MB

Release files / ezexb-0.3.4.tar.gz

Download URL ezexb-0.3.4.tar.gz
Size 255.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0c67877c7d9e038cacc0301cef9e045118f5c69c8a4192bd6096bd90cef12209
BLAKE2b-256 checksum
How to use checksums
e16ed9d515fac55d61c7eede9d80d6eda527f6231d46f963a4ec278bb8b45ffe
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 17, 2026.

Transparency log

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

Download URL ezexb-0.3.4-cp310-abi3-win_amd64.whl
Size 749.5 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4bc361cfd2d06e6f9c33f37e35d3aaed7e761756af5f721b6f0ab41e47b17605
BLAKE2b-256 checksum
How to use checksums
6939bc4ce5fcd8524678bb2383d994c5d8cb9020ab56779d1d5754c94010cb20
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 17, 2026.

Transparency log

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

Download URL ezexb-0.3.4-cp310-abi3-manylinux_2_28_x86_64.whl
Size 871.2 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
bbe6089effc319f51505b235cc9773b0475e2a0b1e2a8abee4961a96033a0ab0
BLAKE2b-256 checksum
How to use checksums
13771dfcb7734471212285e1c8dcf41682e89a9f55a86cf2132b26147e808697
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 17, 2026.

Transparency log

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

Download URL ezexb-0.3.4-cp310-abi3-manylinux_2_28_aarch64.whl
Size 863.6 kB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
52e84a3e9368446abc0b7454b7dadee6e2a382bbf754b3bcfec3e8ffe2d1e9c4
BLAKE2b-256 checksum
How to use checksums
8ec705e27ed1a773150d8ed0c0f1b2c367a8c6bd1bab39d4ad1d1f1a544e2001
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 17, 2026.

Transparency log

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

Download URL ezexb-0.3.4-cp310-abi3-macosx_11_0_arm64.whl
Size 823.7 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1df0d6a8a2ffde76d5d472ebe3a4ff71c0291f2c7a5fa966836592b5abff9245
BLAKE2b-256 checksum
How to use checksums
8c81a5a651286e27cb5726f64b522ea0daa5eeeae0560ca329834d414d41fdc0
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 17, 2026.

Transparency log

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

Download URL ezexb-0.3.4-cp310-abi3-macosx_10_12_x86_64.whl
Size 834.0 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2bb5f51b4d9fac31f2dfca4e7434c67accd525c7b56d92998f188a665b8e2071
BLAKE2b-256 checksum
How to use checksums
d578ce56b1f458b2f7b2805feb678ab5b79d952ee3719b6c54a759d9527d7ccc
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 17, 2026.

Transparency log

Security for ezexb 0.3.4

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.4.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 17, 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