Metadata-Version: 2.1
Name: sqlite2png
Version: 0.1.4
Summary: Command line tool to get a png diagram of SQLite DB
Author-email: Anatoli Babenia <anatoli@rainforce.org>
Project-URL: homepage, https://github.com/abitrolly/sqlite2png
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Database :: Front-Ends
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE.sqlalchemy_schemadisplay
Requires-Dist: sqlalchemy
Requires-Dist: pydot

This is a command line interface for
[`sqlalchemy_schemadisplay`](https://github.com/fschulze/sqlalchemy_schemadisplay)
tool by Florian Schulze.

### Usage

```bash
sqlite2png.py sqlite.db
```

Example

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

![](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
```
