python2uml
Convert Python source code into UML class diagrams directly in VS Code.
Note: Graphviz must be installed.
Features
- Generate UML diagrams from Python files or folders
- Support multiple output formats: SVG, PDF, PNG, JPG
- Clean, orthogonal diagram layout
- Select save location via native file dialog
Usage
Generate UML from Files
- Open the command palette (
Ctrl+Shift+P)
- Run
python2uml: Generate UML Diagram from Python Files
- Select Python file(s)
- Choose save location and format
- View your UML diagram
Generate UML from Folders
- Open the command palette (
Ctrl+Shift+P)
- Run
python2uml: Generate UML Diagram from Python Folders
- Select folder(s) containing Python files
- Choose save location and format
- View your UML diagram
Requirements
Install Graphviz
- Download the installer from the official site: https://graphviz.org/download/
- Run the installer
- Check "Add Graphviz to PATH" during install (critical)
- Restart your terminal / VS Code
License
MIT
| |