erdantic
Python library and CLI that draws entity relationship diagrams for code-defined data model classes, supporting Pydantic V2 and V1, attrs, msgspec and standard-library dataclasses, rendered with Graphviz or exported as D2, suitable for keeping a clean data model reference in documentation.
erdantic at pypi.org is a free MIT Python CLI and library drawing ERDs from code data models, Pydantic V2 V1, attrs, msgspec and dataclasses, Graphviz rendering or D2 output, typenames annotation formatting, Python 3.9+, CLI dotted-import to file or inspectable Python diagram object, pygraphviz and Graphviz dependency, conda-forge combined install or pip from PyPI (data as of Nov 22, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is erdantic free?
erdantic: erdantic is free open-source software under the MIT License, published on PyPI and requiring Python 3.9 or higher. It supports Pydantic V2, Pydantic V1 legacy, attrs, msgspec and standard-library dataclasses; diagrams render through the Graphviz library, with D2 available as an alternative output format, and type annotations are formatted using the typenames library. It runs either as a CLI that points at a dotted model import path and output file, or as an imported Python library where a diagram object can be inspected and customized. Graph modeling depends on pygraphviz and the Graphviz C library; on Linux and macOS the easiest combined install is conda-forge, otherwise install dependencies from PyPI with pip (data as of Nov 22, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is erdantic free?
The code is free to self-host, but a hosted plan from the vendor may not be. erdantic publishes its source, so cost depends on where you run it.
How much does erdantic cost?
erdantic is free open-source software under the MIT License, published on PyPI and requiring Python 3.9 or higher. It supports Pydantic V2, Pydantic V1 legacy, attrs, msgspec and standard-library dataclasses; diagrams render through the Graphviz library, with D2 available as an alternative output format, and type annotations are formatted using the typenames library. It runs either as a CLI that points at a dotted model import path and output file, or as an imported Python library where a diagram object can be inspected and customized. Graph modeling depends on pygraphviz and the Graphviz C library; on Linux and macOS the easiest combined install is conda-forge, otherwise install dependencies from PyPI with pip (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check erdantic's current pricing?
On erdantic's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is erdantic?
Point the CLI or library at an importable model class; erdantic walks fields and relationships, lays out nodes and edges, and writes a diagram file whose format follows the output extension, keeping documentation in sync with the actual code models.
How does pricing work?
The package installs free under MIT with no seat license; bring your own Python environment and Graphviz or D2 toolchain, and any commercial support or training arrangement would be outside the open-source project.
How does erdantic compare with other tools in Dev Workflow & Productivity?
erdantic is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| erdantic | Open source | erdantic is free open-source software under the MIT License, published on PyPI and requiring Python 3.9 or higher. It supports Pydantic V2, Pydantic V1 legacy, attrs, msgspec and standard-library dataclasses; diagrams render through the Graphviz library, with D2 available as an alternative output format, and type annotations are formatted using the typenames library. It runs either as a CLI that points at a dotted model import path and output file, or as an imported Python library where a diagram object can be inspected and customized. Graph modeling depends on pygraphviz and the Graphviz C library; on Linux and macOS the easiest combined install is conda-forge, otherwise install dependencies from PyPI with pip (data as of Nov 22, 2026). | Nov 22, 2026 |
| Mermaid | Open source | Free to run locally or self-host from the project source; hosted, support and enterprise tiers may be sold separately (data as of Nov 21, 2026) | Nov 21, 2026 |
| dbdiagram.io | Freemium | The Free plan lasts forever: up to 10 diagrams and doc projects for a single user, SQL import and export, PDF/PNG/SVG export, public sharing and embedding diagrams and docs in your own site. Personal Pro is $8 per month for unlimited diagrams and doc projects, a single user, unlimited diagram views, password-protected and private sharing, limited collaboration and advanced visualization for large databases. The Team plan is $75 per month for unlimited projects and 3 users, adding a collaborative workspace, team management and collaboration and unified admin and billing, with extra users at $5 per month each. The Custom plan is contact-sales pricing for unlimited projects and 10 users, with prioritized feature requests, procurement or legal review, custom payment terms, SAML SSO, user activity logging and IP allow list; the platform is SOC 2 Type II compliant (data as of Nov 22, 2026). | Nov 22, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
erdantic's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.
Open source does not always mean every hosted version is free.
Key pricing: erdantic is free open-source software under the MIT License, published on PyPI and requiring Python 3.9 or higher. It supports Pydantic V2, Pydantic V1 legacy, attrs, msgspec and standard-library dataclasses; diagrams render through the Graphviz library, with D2 available as an alternative output format, and type annotations are formatted using the typenames library. It runs either as a CLI that points at a dotted model import path and output file, or as an imported Python library where a diagram object can be inspected and customized. Graph modeling depends on pygraphviz and the Graphviz C library; on Linux and macOS the easiest combined install is conda-forge, otherwise install dependencies from PyPI with pip (data as of Nov 22, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
Mermaid
Open-source text-to-diagram tool for flowcharts, sequence diagrams, class diagrams, Git graphs and Markdown-adjacent documentation.
dbdiagram.io
Online database ER diagram and documentation tool built around the DBML open schema specification, with a browser SQL playground, SQL import and export, PDF/PNG/SVG exports, public sharing and embeddable diagrams and docs for individuals and teams.
Tool Information
- Official Websitepypi.org
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 22, 2026
