Skip to main content

Command line tool to get a png diagram of SQLite DB

Project description

This is a command line interface for sqlalchemy_schemadisplay tool by Florian Schulze.

Usage

sqlite2png.py sqlite.db

Example

$ python sqlite2png.py /usr/share/ibus-libpinyin/db/english.db
sqlite:////usr/share/ibus-libpinyin/db/english.db
writing db.png

The script uses SQLAlchemy, pydot and graphviz under the hood. Graphviz-cairo is recommended upstream to improve image quality.

Roadmap

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlite2png-0.1.4.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

sqlite2png-0.1.4-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page