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, and references to images and other drawings 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
- User guide
- Command-line reference
- Compatibility and limitations
- Raw inspection and source locations
- Best-effort reading
- Advanced profiles
- Contributing
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.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ezdracad-0.1.0a3.tar.gz | 353.2 kB | With provenance | Details for ezdracad-0.1.0a3.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| ezdracad-0.1.0a3-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for ezdracad-0.1.0a3-cp310-abi3-win_amd64.whl |
| ezdracad-0.1.0a3-cp310-abi3-manylinux_2_28_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ x86-64 | Details for ezdracad-0.1.0a3-cp310-abi3-manylinux_2_28_x86_64.whl |
| ezdracad-0.1.0a3-cp310-abi3-manylinux_2_28_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ ARM64 | Details for ezdracad-0.1.0a3-cp310-abi3-manylinux_2_28_aarch64.whl |
| ezdracad-0.1.0a3-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for ezdracad-0.1.0a3-cp310-abi3-macosx_11_0_arm64.whl |
| ezdracad-0.1.0a3-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details for ezdracad-0.1.0a3-cp310-abi3-macosx_10_12_x86_64.whl |
Total release size: 4.7 MB
Release files / ezdracad-0.1.0a3.tar.gz
| Download URL | ezdracad-0.1.0a3.tar.gz |
|---|---|
| Size | 353.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed0e94c5770959fe6ee570501fb2d71c6d5db1b2f261ec7afdf9032f7763010d
|
|
BLAKE2b-256 checksum How to use checksums |
09bc89c27bdc7311021475da98e4aaa872105e3cd24c75ebb715ed6a8c018a8b
|
| 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 logRelease files / ezdracad-0.1.0a3-cp310-abi3-win_amd64.whl
| Download URL | ezdracad-0.1.0a3-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 763.1 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9db566192b0065ac963e215257ea1f669fd0443d9815ea1052213d545600f888
|
|
BLAKE2b-256 checksum How to use checksums |
ae4e1d94821741fb7c9b9e1726c34d938c9d0eb8d98517f76055df6afb234b0f
|
| 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 logRelease files / ezdracad-0.1.0a3-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | ezdracad-0.1.0a3-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 925.8 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c218d95a6c1acc586605e409016b3d88e59d458f4488f53991ec2f59b580690c
|
|
BLAKE2b-256 checksum How to use checksums |
195159189eb468da26b56dfcd069867642ae16d0e0c8749e0768263a78aeae46
|
| 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 logRelease files / ezdracad-0.1.0a3-cp310-abi3-manylinux_2_28_aarch64.whl
| Download URL | ezdracad-0.1.0a3-cp310-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 919.2 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
f68f85409ddf54304fd90afbfec0a910bda07d4933ce89bc5ae06757cab6205a
|
|
BLAKE2b-256 checksum How to use checksums |
e957b8fff826dd2bdece916d68e6f11ceea5c6b78914bffa06fd4ed508fab89b
|
| 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 logRelease files / ezdracad-0.1.0a3-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | ezdracad-0.1.0a3-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 856.8 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
74cc8409708c36540501eff3f575b80a705f30e9a0bbcfa499e60c7f3b33bc0d
|
|
BLAKE2b-256 checksum How to use checksums |
17c360ea949b2cdebdc0eb8990c19ced0c22668ccf2456a09f07be9aa57c89f1
|
| 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 logRelease files / ezdracad-0.1.0a3-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | ezdracad-0.1.0a3-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 866.1 kB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
f0d8fd24579651a0ab38bd7b6560c48f71b9f6433f3a7bae42dc019faaa4c5b1
|
|
BLAKE2b-256 checksum How to use checksums |
aafa72e9f3a560128ded742c62406a6f3758c56e471a5d87c6ee76b1c6bbc18e
|
| 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 logSecurity for ezdracad 0.1.0a3
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.
Attestation for ezdracad-0.1.0a3.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 logA 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.