{"id":14483127,"url":"https://github.com/qweeze/pg_diagram","last_synced_at":"2026-03-09T04:02:47.252Z","repository":{"id":35028961,"uuid":"198297109","full_name":"qweeze/pg_diagram","owner":"qweeze","description":"A tool to convert postgresql schema to ER diagram","archived":false,"fork":false,"pushed_at":"2024-10-10T20:59:05.000Z","size":86,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T15:50:08.267Z","etag":null,"topics":["entity-relation","postgres","postgresql","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qweeze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-22T20:26:55.000Z","updated_at":"2024-12-30T22:24:23.000Z","dependencies_parsed_at":"2023-01-15T12:21:02.030Z","dependency_job_id":null,"html_url":"https://github.com/qweeze/pg_diagram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qweeze%2Fpg_diagram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qweeze%2Fpg_diagram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qweeze%2Fpg_diagram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qweeze%2Fpg_diagram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qweeze","download_url":"https://codeload.github.com/qweeze/pg_diagram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695479,"owners_count":21146956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["entity-relation","postgres","postgresql","python"],"created_at":"2024-09-03T00:01:32.323Z","updated_at":"2026-03-09T04:02:42.202Z","avatar_url":"https://github.com/qweeze.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"## pg_diagram\n\n[![PyPI version](https://badge.fury.io/py/pg-diagram.svg)](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\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/qweeze/pg_diagram/raw/master/diagram.png?raw=true\" alt=\"diagram image\"/\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqweeze%2Fpg_diagram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqweeze%2Fpg_diagram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqweeze%2Fpg_diagram/lists"}