pydbml
Python parser and builder for DBML
Decision gist · record as of 2026-08-14
Yes. PyDBML is actively maintained, has no known vulnerabilities, installs with minimal friction, and is permissively licensed. Install it if you need to parse or generate DBML schemas in Python—it's the standard tool for that task.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or higher.
- Low install friction with a single runtime dependency (pyparsing).
- Active maintenance with a recent release in October 2025 and commits through April 2026.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects without licensing concerns.
last release 2025-10-24 (294 days) · last repo commit 2026-04-20 · 139 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 94,653 downloads/mo, #13,319 on PyPI
Alternatives
Verify before relying
from pydbml import PyDBML
from pathlib import Path
parsed = PyDBML(Path('schema.dbml'))
for table in parsed.tables:
print(table.name)
print(parsed.sql)- Whether the parser handles all DBML v3.9.5 features or only a subset.
- Performance characteristics when parsing large or complex schemas.
What it is and what it does
PyDBML is a Python parser and builder for DBML, a human-readable markup language for defining database schemas. It reads DBML files or strings and constructs an in-memory representation of the schema as a Database object, allowing you to access tables, references, enums, and table groups programmatically. You can then generate SQL DDL statements from the parsed schema or regenerate DBML from modified objects.
The package is compliant with DBML v3.9.5 syntax and depends only on pyparsing for parsing. It's useful when you need to work with DBML schemas in Python code—reading them for documentation, validation, or transformation, or building schemas programmatically and exporting them as SQL or DBML.
Use it for
- Parse a DBML schema file and generate SQL DDL to create database tables.
- Read DBML definitions and programmatically extract table and column metadata for documentation or tooling.
- Build a database schema in code and export it as DBML or SQL for version control and collaboration.
- Validate or transform DBML schemas by parsing, modifying, and regenerating them.
- Integrate DBML schema definitions into Python-based database migration or ORM tools.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
PyDBML is actively maintained, has no known vulnerabilities, installs with minimal friction, and is permissively licensed. Install it if you need to parse or generate DBML schemas in Python—it's the standard tool for that task.
Install
pydbml on PyPI
Before you install
Low install friction with a single runtime dependency (pyparsing). Active maintenance with a recent release in October 2025 and commits through April 2026.
Requires Python 3.8 or higher.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects without licensing concerns.
Quickstart
from pydbml import PyDBML
from pathlib import Path
parsed = PyDBML(Path('schema.dbml'))
for table in parsed.tables:
print(table.name)
print(parsed.sql)
Verify before relying
- Whether the parser handles all DBML v3.9.5 features or only a subset.
- Performance characteristics when parsing large or complex schemas.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepyparsing |
| Maintenance | Actively maintained 294 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 94,653 / month, #13,319 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/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonTopic :: DocumentationTopic :: Text Processing :: MarkupTopic :: Utilities |
Evidence: pydbml-1.2.1-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 › “DBML parser python”
- pydbmlPyDBML parses and generates DBML (Database Markup Language) schemas,…
- dparseParses Python dependency files (requirements.txt, conda.yml, tox.ini,…
- pyleriPyleri is a left-right parser generator that lets you define a…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities 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.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
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.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also ddlparse · simple-ddl-parser · jsonschema-pydantic-converter · syntaqlite · PyMySQL · sqlalchemy-risingwave · jinjasql · sql-metadata · python-chess · datamodel-code-generator