ezdxf
A Python package to create/manipulate DXF drawings.
Decision gist · record as of 2026-08-14
Yes. ezdxf is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It's well-suited for any project that needs to read, create, or modify DXF files programmatically. The broad DXF version support and preservation of third-party content make it reliable for integration with existing CAD workflows.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction: pure Python wheel with four stable runtime dependencies (pyparsing, typing_extensions, numpy, fonttools).
- Active maintenance with last commit 2026-07-21 and 92 days since latest release.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute ezdxf with minimal restrictions in commercial and open-source projects.
last release 2026-05-14 (92 days) · last repo commit 2026-07-21 · 1,403 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,656,759 downloads/mo, #2,537 on PyPI
Alternatives
Verify before relying
import ezdxf
from ezdxf import colors
# Create a new DXF document
doc = ezdxf.new(dxfversion="R2010")
msp = doc.modelspace()
# Add a line and text
msp.add_line((0, 0), (10, 0), dxfattribs={"color": colors.YELLOW})
msp.add_text("Test", dxfattribs={"layer": "TEXTLAYER"})
# Save the document
doc.saveas("output.dxf")- Performance characteristics when handling very large DXF files (the iterdxf add-on is mentioned for >5GB files, but core performance is not quantified).
- Completeness of DXF entity support across all supported versions and whether all AutoCAD features are representable.
What it is and what it does
ezdxf is a Python library for working with DXF (Drawing Exchange Format) files, the standard format used by AutoCAD and other CAD applications. It lets you programmatically create new DXF documents from scratch, load and modify existing ones, and save them back while preserving all content including third-party data and unknown tags. The library supports reading and writing across multiple DXF versions (R12, R2000, R2004, R2007, R2010, R2013, R2018) and can read older versions with automatic upgrading.
The core package depends on pyparsing, typing_extensions, numpy, and fonttools. It includes optional add-ons for specialized tasks like rendering to matplotlib or PyQt5, streaming huge files, importing from other documents, and converting text to paths. A command-line tool is included for viewing, converting, and inspecting DXF files. The library has type annotations and is tested on both CPython and PyPy3.
Use it for
- Generate CAD drawings programmatically for automated design workflows or parametric modeling.
- Convert or migrate DXF files between different AutoCAD versions while preserving all data.
- Extract and analyze DXF content from third-party CAD applications without data loss.
- Build a command-line tool to inspect, audit, or batch-process DXF files.
- Render DXF drawings to PNG, PDF, or SVG for visualization or documentation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
ezdxf is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It's well-suited for any project that needs to read, create, or modify DXF files programmatically. The broad DXF version support and preservation of third-party content make it reliable for integration with existing CAD workflows.
Install
ezdxf on PyPI
Before you install
Low friction: pure Python wheel with four stable runtime dependencies (pyparsing, typing_extensions, numpy, fonttools). Active maintenance with last commit 2026-07-21 and 92 days since latest release. Supports CPython and PyPy3.
Requires Python 3.10 or later.
License in practice
MIT license (permissive) means you can use, modify, and distribute ezdxf with minimal restrictions in commercial and open-source projects.
Quickstart
import ezdxf
from ezdxf import colors
# Create a new DXF document
doc = ezdxf.new(dxfversion="R2010")
msp = doc.modelspace()
# Add a line and text
msp.add_line((0, 0), (10, 0), dxfattribs={"color": colors.YELLOW})
msp.add_text("Test", dxfattribs={"layer": "TEXTLAYER"})
# Save the document
doc.saveas("output.dxf")
Verify before relying
- Performance characteristics when handling very large DXF files (the iterdxf add-on is mentioned for >5GB files, but core performance is not quantified).
- Completeness of DXF entity support across all supported versions and whether all AutoCAD features are representable.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagespyparsingtyping_extensionsnumpyfonttools |
| Maintenance | Actively maintained 92 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,656,759 / month, #2,537 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: ezdxf-1.4.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “DXF file creation and editing”
- ezdxfezdxf creates, reads, modifies, and writes DXF documents across…
- cadqueryCadQuery is a Python library for writing scripts that generate…
- in-placeProvides an InPlace class for reading and writing files in-place,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also svgwrite · python-dxf · sphinxcontrib-svg2pdfconverter · spire-doc · docx · fpdf · qrcode · pygexf · PyQRCode · manifold3d