Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ezdracad

A read-only DRA-CAD parser with a Rust core and Python bindings.

ezdracad inspects MPZ, flat MPX, and two supported unprotected MPS encodings. It offers two ways to read a drawing. The best-effort reader decodes every object whose saved layout is known, in older and newer record generations, and counts what it skipped. The qualified reader returns a conservative subset of lines, block placements, root circles, arcs, and literal text, and stops where it cannot establish the meaning. DRA-CAD is not required at runtime.

This is alpha software with partial format support. A successful inspection or extraction does not establish complete drawing semantics, physical units, WCS coordinates, visibility, or print fidelity. Unsupported state is reported; malformed data and resource-limit violations raise errors.

Installation

Python 3.10 or later is required. Building from source also requires Rust 1.83 or later:

python -m pip install .

The Python package has no runtime Python dependencies. The native extension contains the parser; MPS decompression uses a Rust backend.

Read everything that is recognized

from ezdracad import best_effort

drawing = best_effort.readfile("drawing.mpz")
for entity in drawing.walk():
    print(entity.type, entity.layer, entity.data)

print(drawing.report.decoded_counts)
print(drawing.report.unsupported_counts, drawing.report.failed_counts)

Lines, circles, arcs, ellipses, text, polylines with spline curves, hatches, dimensions, packages, and block placements are returned with their layer, color, line-type, and width references. Objects of other kinds are counted, not guessed. Coordinates are the stored values; saved settings are reported and not applied. See best-effort reading.

Read with qualification

import ezdracad

doc = ezdracad.readfile("drawing.mpz", policy="partial")
for line in doc.query("LINE"):
    print(line.start, line.end, line.units, line.source_ref)

print(doc.report.status)
print(doc.report.unsupported_counts)
print(doc.report.context_blocked_counts)

The default strict policy raises IncompleteReadError when the requested meaning cannot be established. Its report explains the incomplete result. Use partial to inspect supported output and its limitations. Unknown state can block later objects, so an empty query does not prove that a drawing contains no such geometry.

Root circles, arcs, and literal text require an explicit profile:

doc = ezdracad.readfile(
    "drawing.mpz",
    policy="partial",
    basic_profile="marker25_root_primitives_v1",
)
for entity in doc.query("*"):
    print(entity.type, entity.source_ref.offset_domain)

Inspect without decoding geometry

from ezdracad import ParseLimits, raw

info = raw.inspectfile(
    "drawing.mps",
    limits=ParseLimits(max_decompressed_size=32 * 1024 * 1024),
)
print(info.format, info.payload)

Format detection uses the bytes, not the filename extension. Inspection, record scanning, and geometry decoding have separate support boundaries. See compatibility before interpreting results.

Command line

ezdracad inspect drawing.mpz --json
ezdracad scan drawing.mpx --json
ezdracad extract drawing.mpz --entities LINE --partial --json
ezdracad best-effort drawing.mpz --json --entities

Exit status is 0 for success within the requested scope, 2 for an unsupported or partial result, 1 for malformed data or I/O failure, and 3 for a resource limit. Extraction scripts should accept status 2 when requesting partial output.

Documentation

The standalone Rust crate is documented in ezdracad-core.

License

The library, documentation, and independently authored test fixtures are licensed under the PolyForm Noncommercial License 1.0.0. This is source-available software with noncommercial-use restrictions, not an OSI-approved open-source license. Commercial use outside the license grants requires separate permission from the copyright holder. Dependencies retain their own licenses; see third-party notices. DRA-CAD is a product name of its respective owner. This project is not an official vendor SDK. See LICENSE.

Metadata

Release files for ezdracad 0.1.0a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ezdracad 0.1.0a2
File Size Uploaded Provenance Actions
ezdracad-0.1.0a2.tar.gz 335.3 kB With provenance Details for ezdracad-0.1.0a2.tar.gz

Built distributions (wheels)

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

Total release size: 4.6 MB

Release files / ezdracad-0.1.0a2.tar.gz

Download URL ezdracad-0.1.0a2.tar.gz
Size 335.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f73be89c8a527dd6df5fb4cc5fb6c5b2a76709d4c42dcc4af402fdf017edc98b
BLAKE2b-256 checksum
How to use checksums
b7e30be8fb21c57e2bd75fe52a2ed3b1f831f2a785a7d23c0276352a9f9dae5a
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 21, 2026.

Transparency log

Release files / ezdracad-0.1.0a2-cp310-abi3-win_amd64.whl

Download URL ezdracad-0.1.0a2-cp310-abi3-win_amd64.whl
Size 743.6 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
11f9102b83ab86c27d23d15a8e5f8380b2112fdef725014937803add758b679f
BLAKE2b-256 checksum
How to use checksums
9db516e553c44ac13e727595a95ba9154ac54530631173ee0d76c23a249ba880
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 21, 2026.

Transparency log

Release files / ezdracad-0.1.0a2-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL ezdracad-0.1.0a2-cp310-abi3-manylinux_2_28_x86_64.whl
Size 906.8 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
242db54e4adbd8bb8866d246a321265e9b860fa0a455800f0c1c63a2641b22a7
BLAKE2b-256 checksum
How to use checksums
ca029b047ccffaa8554aaeade6d6e6ced9ef26232093a9beaad5c448e2c3d0c7
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 21, 2026.

Transparency log

Release files / ezdracad-0.1.0a2-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL ezdracad-0.1.0a2-cp310-abi3-manylinux_2_28_aarch64.whl
Size 898.6 kB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
ba098d11d086b95dea4983e5558a538b9b0fbc8ac741e331f130e52d09349a16
BLAKE2b-256 checksum
How to use checksums
9015b3084f6fe7b80d4a096af493294bcda68e5d1322a22768bdf4952a018193
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 21, 2026.

Transparency log

Release files / ezdracad-0.1.0a2-cp310-abi3-macosx_11_0_arm64.whl

Download URL ezdracad-0.1.0a2-cp310-abi3-macosx_11_0_arm64.whl
Size 839.7 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7bc9c0de484a700b954882f361488104a99e1fab3fd3435031947755eceab409
BLAKE2b-256 checksum
How to use checksums
ce340ff0f0662bf91510396ffdf9d544eca0d667ee8520c5aa184c89a076808b
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 21, 2026.

Transparency log

Release files / ezdracad-0.1.0a2-cp310-abi3-macosx_10_12_x86_64.whl

Download URL ezdracad-0.1.0a2-cp310-abi3-macosx_10_12_x86_64.whl
Size 848.0 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
49814a8c44e5cf5e7986abd72852a2908bae0c1848d31dfeb8729ab9e87d1113
BLAKE2b-256 checksum
How to use checksums
9982ab8ef51c52c0ad030afafdff1546963d339f14c8234928acd4bab2d33a8f
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 21, 2026.

Transparency log

Security for ezdracad 0.1.0a2

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 ezdracad-0.1.0a2.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 21, 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