{ "info": { "author": "qweeze", "author_email": "qweeeze@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7" ], "description": "## pg_diagram\n\n[](https://badge.fury.io/py/pg-diagram)\n\nA tool for creating [Entity-relationship diagrams](https://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model) for PostgreSQL\n\n### Installation\n\n- install [Graphviz](https://graphviz.org)\n-\n ```bash\n pip install pg-diagram\n ```\n### Usage\n```bash\npg_diagram --format svg -o diagram.svg schema.sql\n```\n```bash\n# or feed output of pg_dump\npg_dump --schema-only mydb | pg_diagram -o mydb.png -\n```\n\n### Sample output\n
\n
\n