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, observed marker-25 MPX, and two supported unprotected MPS encodings. It exposes raw records and a conservative subset of lines, block placements, root circles, arcs, and literal text. 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 a drawing

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

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.0a1

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

Built distributions (wheels)

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

Total release size: 3.6 MB

Release files / ezdracad-0.1.0a1.tar.gz

Download URL ezdracad-0.1.0a1.tar.gz
Size 295.2 kB
Tags Source
SHA-256 checksum
How to use checksums
25988090d6fd9125523ddc4cf30618d47822618cde43a8c45980e91930eefc0d
BLAKE2b-256 checksum
How to use checksums
cdfa32fe38ece035cf6a3423ac1ce1936a09b568a93e51615a9da982d99ae35b
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.0a1-cp310-abi3-win_amd64.whl

Download URL ezdracad-0.1.0a1-cp310-abi3-win_amd64.whl
Size 548.0 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
2f53fb71b50926865075d5f2b2cec128374d0175a810d05b7b66e4ed8106341f
BLAKE2b-256 checksum
How to use checksums
c41fb383683f7e31d3b1dd37b02f5db071bc944e1fad893c0f8f234c777e64b0
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.0a1-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL ezdracad-0.1.0a1-cp310-abi3-manylinux_2_28_x86_64.whl
Size 708.6 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
66eb3145c2862f17bf3085a9ca59666f13b140bf99683611b389737480ca95a9
BLAKE2b-256 checksum
How to use checksums
089689c207631fd5ad674e5c3bbd8bee097656d36f676459f36cbb9a1b462066
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.0a1-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL ezdracad-0.1.0a1-cp310-abi3-manylinux_2_28_aarch64.whl
Size 705.2 kB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
32726a707f7874853537209a57658363647e712aef3d0bde96f1d3bc64aa93a4
BLAKE2b-256 checksum
How to use checksums
3e3c3839191801128418b69afd3b844b27e0c563d5a0c182627aa785966358a2
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.0a1-cp310-abi3-macosx_11_0_arm64.whl

Download URL ezdracad-0.1.0a1-cp310-abi3-macosx_11_0_arm64.whl
Size 645.9 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ecb85166be8e1aad5b972882a445cd1ed4ef7b6f3ef601fe4b14edc3425f1b01
BLAKE2b-256 checksum
How to use checksums
8738a8802bd872ef2472677820518bfff4e8edd7c2abc52c47f520df6ee078ad
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.0a1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL ezdracad-0.1.0a1-cp310-abi3-macosx_10_12_x86_64.whl
Size 653.3 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e2dbd8670be32573c385f60a84fa8f98f365072fb9291926c6e2c6e10aca8049
BLAKE2b-256 checksum
How to use checksums
baa922e82632f0f4b7034e06dc5e9e15e318bf14c68345fe0f5c93528beb070a
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.0a1

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.0a1.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