Skip to main content

dbsketch

ASCII/Unicode ERD diagrams from DBML or SQL schemas — designed to look clean in READMEs, docstrings, and LLM prompts.

pip install dbsketch
dbsketch schema.sql
dbsketch schema.dbml

No Node.js installation required — a suitable runtime is downloaded automatically on first use.

Usage

dbsketch [options] <file>

Options:
  --no-types      Hide column types
  --no-columns    Show table names only
  --ascii         Use ASCII box-drawing (default: Unicode)
  --sql           Force SQL input mode (auto-detected from .sql extension)

Example

dbsketch schema.sql > docs/erd.txt

Web playground

Try it in the browser at dbsketch.dev.

More

Full documentation and source at github.com/jacobmpeters/dbsketch.

Metadata

Release files for dbsketch 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for dbsketch 0.2.1
File Interpreter ABI Platform Actions
dbsketch-0.2.1-py3-none-any.whl Python 3 none any Details for dbsketch-0.2.1-py3-none-any.whl

Release files / dbsketch-0.2.1-py3-none-any.whl

Download URL dbsketch-0.2.1-py3-none-any.whl
Size 2.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
987768819b898bd62ff05f790fecbc37285c169b29729441f2bf379ad73cc899
BLAKE2b-256 checksum
How to use checksums
7c5b02d435a02c46ae855a9fdd9d473a209304805f163c990ff8e4e8e632f8cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 22, 2026.

Transparency log

Security for dbsketch 0.2.1

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

1 file in this release has been uploaded with provenance metadata.

Attestation for dbsketch-0.2.1-py3-none-any.whl

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 May 22, 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