A visual database schema explorer that generates Entity-Relationship diagrams from PostgreSQL or MySQL databases. Adding support for other databases is easy.
This project is the outcome of my long, unsuccessful, search for a simple yet effective tool for visualizing database schemas. I decided to give it a try and roll my own.
- (new) Search for strings in fields and table names
- (new) Dark in the diagram rendering
- Interactive table filrering (add/remove to the diagram)
- Remove long table prefixes
- Export diagrams as SVG/PNG/PDF
- Overview mode for large schemas
- Zoom and fit controls
- Command Line Interface
- Dark/Light mode support
- Python 3.8+
- Graphviz (
brew install graphvizon macOS)
- Clone the repository:
git clone https://github.com/nkanellopoulos/ER_tool.git
cd ER_tool- Install dependencies:
pip install -r requirements.txtTo launch the (GUI) application:
python ER_Tool.pyConnect to your database:
- using the connection dialog
- environment variable:
export ER_DB_CONNECTION="postgresql://user:pass@host:port/dbname"Ctrl+B: Open database connection dialogCtrl+=: Zoom inCtrl+-: Zoom outCtrl+0: Fit viewCtrl+1: Reset zoom (100%)Ctrl+A: Select all tablesCtrl+D: Deselect all tablesCtrl+R: Refresh diagramCtrl+S: Export diagram
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

