Skip to main content

Package to create ER diagrams from SQLAlchemy schemas using Graphviz.

Project description

SQLAlchemyViz

SQLAlchemyViz is a command line utility to create entity-relations diagrams from database schemas modeled with SQLAlchemy using Graphviz.

Requirements

Requires Graphviz installed on your machine and the SQLAlchemy and pydot packages.

License

SQLAlchemyViz is distributed under the MIT License.

Quickstart

Create an ER diagram from a sqlalchemy schema object.

positional arguments:

pkg.module:metadata Import path for the metadata identifier.

optional arguments:
-h, --help

show this help message and exit

-f FILE, --file FILE

Write diagram to specified file {default: diagram.pdf}.

-p PROG, --prog PROG

Name of the graphviz layout program to use {default: “dot”}. Other choices are: “dot”, “twopi”, “circo” or “fdp”.

-o OPTION, --opt OPTION

Where OPTION is e.g. “graph_bgcolor=red”. May be supplied multiple times.

-g GRAPHVIZ_PATH, --graphviz GRAPHVIZ_PATH

Path to folder containing the graphviz executables.

-i INCLUDE_TABLES, --include INCLUDE_TABLES

Include the given comma separated list of tables or classes. If omitted, create diagram for all.

-x EXCLUDE_TABLES, --exclude EXCLUDE_TABLES

Exclude the given comma separated list of tables or classes.

--sort-columns

Sort columns by whether they are primary or foreign keys and (case-insensitive) alphabetically.

--unique-relations

Draw relations between tables only once (if multiple foreign keys reference the same table).

--show-constraints

Show table constraints.

--max-cols MAX_COLS

Limit amount of columns shown per table.

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

SQLAlchemyViz-0.4.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file SQLAlchemyViz-0.4.tar.gz.

File metadata

  • Download URL: SQLAlchemyViz-0.4.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for SQLAlchemyViz-0.4.tar.gz
Algorithm Hash digest
SHA256 68d442ef8718f2a938302f7c34371ed73c2a2d4f2e98a70a4fe79e7ab2304c29
MD5 5612dbb677353b7dfb0e433f80a3e81b
BLAKE2b-256 61d290770d9b562050a83219e60f26f46ae7fc22af8825d3211125c488c3127c

See more details on using hashes here.

Supported by

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