Skip to main content

sqlite2png tool generates .png image of database schema.

PyPI

Usage

From checkout without installing (needs sqlalchemy and pydot).

./sqlite2png.py sqlite.db

The diagram is written into db.png.

Install with pip and run as module.

pip install sqlite2png
sqlite2png /usr/share/ibus-libpinyin/db/english.db
sqlite:////usr/share/ibus-libpinyin/db/english.db
writing db.png

About and examples

sqlite2png is a CLI wrapper over sqlalchemy_schemadisplay lib by Florian Schulze, which uses SQLAlchemy, pydot and graphviz under the hood. Graphviz-cairo is also recommended to improve image quality.

See ./examples.

Roadmap / Changelog

  • de-vendorize sqlalchemy_schemadisplay after it is released
  • output .png to stdout
  • option to show the image (needs PIL and image viewer)
  • option to diff the image
  • support full urls
    {py} postgres://user:pwd@host/database
    {py} sqlite:////usr/share/my.db
  • (1.1.4) install command line script with pip
  • (1.1.4) add example DB to the repo (uses some public DBs)
  • reproducuble .png (seems like it already is)

Metadata

Release files for sqlite2png 1.1.4

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

Source distribution (sdist)

Source distribution for sqlite2png 1.1.4
File Size Uploaded
sqlite2png-1.1.4.tar.gz 8.2 kB Details

Built distribution (wheel)

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

Total release size: 16.8 kB

Release files / sqlite2png-1.1.4.tar.gz

Download URL sqlite2png-1.1.4.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0c2703f3a2936dedeaef9dfeeea2ed2ea9a6b3893fead86f8f4cd0af490865fd
BLAKE2b-256 checksum
How to use checksums
cb04f528a0c1d3603fe263cdadad74d2b47aa6d0de1475a8175508f3b3a82856
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / sqlite2png-1.1.4-py3-none-any.whl

Download URL sqlite2png-1.1.4-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e793e01b51f810d21e20c000dceccafa2be76c89083424aaefb513e7c4b58380
BLAKE2b-256 checksum
How to use checksums
9d6645f77ed8da8282f335170fad88751de1f40b19bec5d40db9b38e4d4aa998
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 release files

0.1.4

2 release files

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