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 every record generation the application can save and in MPUW files without a password, 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 and Bezier curves, fills, regions, hatches, dimensions, leaders, packages, block placements, references to images and other drawings, sheets with their viewports, and the faces of a model are returned with their layer, color, line-type, and width references. The comment, the paper, the scales, and the properties that text fields print come with them. 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.0a4

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.0a4
File Size Uploaded Provenance Actions
ezdracad-0.1.0a4.tar.gz 369.5 kB With provenance Details for ezdracad-0.1.0a4.tar.gz

Built distributions (wheels)

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

Total release size: 4.7 MB

Release files / ezdracad-0.1.0a4.tar.gz

Download URL ezdracad-0.1.0a4.tar.gz
Size 369.5 kB
Tags Source
SHA-256 checksum
How to use checksums
aeca2a46034bb12441c0e55e32007f4a46e0c462b3d14e85a16526112176b03b
BLAKE2b-256 checksum
How to use checksums
0e174f50f8e70da604f7761875e2df8c44f6d5522f2c7831a3eafad7bc1c780a
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 22, 2026.

Transparency log

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

Download URL ezdracad-0.1.0a4-cp310-abi3-win_amd64.whl
Size 771.2 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
66d23988c8a5dde509d3bd102c814e69bb6b96ed44270806d194cecdd5a16ddd
BLAKE2b-256 checksum
How to use checksums
5e0d18bb8848eaab2b4cc6ff5afe0b074a859b23af5e1895acf0d3b6386941a2
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 22, 2026.

Transparency log

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

Download URL ezdracad-0.1.0a4-cp310-abi3-manylinux_2_28_x86_64.whl
Size 933.8 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
2df3101da070142da6ef8c424d71ca1ab822d34cf17e2e96417dd2b38722f9e0
BLAKE2b-256 checksum
How to use checksums
a82e1681cd1420d40da52d034c7d0b9bc9d6967195c71c43054a695b2d5b5d57
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 22, 2026.

Transparency log

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

Download URL ezdracad-0.1.0a4-cp310-abi3-manylinux_2_28_aarch64.whl
Size 925.4 kB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
ec12a0c5b9ed8e0b77729b8ab192c8fe74c5743a090a82980e321e2a97eafeb0
BLAKE2b-256 checksum
How to use checksums
3e0a323e56d4ee9d6807ed02b0f748885470a986c98e9a4458361b1120a56617
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 22, 2026.

Transparency log

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

Download URL ezdracad-0.1.0a4-cp310-abi3-macosx_11_0_arm64.whl
Size 862.5 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a329160bdf4e0ab4f91e85d344ec500fa4302aa2dc72cf29f55edefb7a45c801
BLAKE2b-256 checksum
How to use checksums
94f8fac873fb90defa0fb1d077c74dba20ef8a837ce43d5ff5e1b7d8c9264ef0
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 22, 2026.

Transparency log

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

Download URL ezdracad-0.1.0a4-cp310-abi3-macosx_10_12_x86_64.whl
Size 872.5 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0db17bf0889b671a2ccaa6763d27379e9ca4a219a2ec0bb9eb071ec6e4f0ae73
BLAKE2b-256 checksum
How to use checksums
ca2c134f6aa58799fcc7394941e114803a0a90c428a19f9f2b9e4a20dec35390
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 22, 2026.

Transparency log

Security for ezdracad 0.1.0a4

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.0a4.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 22, 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