Command line tool to get a png diagram of SQLite DB
Project description
sqlite2png tool generates .png image of database schema.
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_schemadisplayafter 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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqlite2png-1.1.4.tar.gz.
File metadata
- Download URL: sqlite2png-1.1.4.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c2703f3a2936dedeaef9dfeeea2ed2ea9a6b3893fead86f8f4cd0af490865fd
|
|
| MD5 |
6083fc4f270fd8b24a9d86b80edc771b
|
|
| BLAKE2b-256 |
cb04f528a0c1d3603fe263cdadad74d2b47aa6d0de1475a8175508f3b3a82856
|
File details
Details for the file sqlite2png-1.1.4-py3-none-any.whl.
File metadata
- Download URL: sqlite2png-1.1.4-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e793e01b51f810d21e20c000dceccafa2be76c89083424aaefb513e7c4b58380
|
|
| MD5 |
815d0657728f7173a4b3618d3b008552
|
|
| BLAKE2b-256 |
9d6645f77ed8da8282f335170fad88751de1f40b19bec5d40db9b38e4d4aa998
|