Overview Version History Q & A Rating & Review
Package to Flowchart
A VS Code extension that visualizes Python package dependencies from requirements.txt, pyproject.toml, setup.py, or Pipfile as interactive Mermaid flowcharts.
Features
Multiple Format Support : Works with requirements.txt, pyproject.toml, setup.py, setup.cfg, and Pipfile
Interactive Flowchart : Beautiful Mermaid-based dependency visualization
Dev Dependencies : Optionally show development dependencies separately
Export Options : Export as SVG or PNG
Theme Support : Multiple Mermaid themes (default, dark, forest, neutral, base)
Zoom Controls : Zoom in/out and reset
Layout Options : Top-to-bottom, bottom-to-top, left-to-right, right-to-left
Version Grouping : Group packages by version specifier
Installation
From VSIX file
Download the .vsix file from the latest release
In VS Code, go to Extensions view (Ctrl+Shift+X)
Click the "..." (More Actions) button
Select "Install from VSIX..." and choose the downloaded file
Usage
Open a Python dependency file (requirements.txt, pyproject.toml, etc.)
Right-click on the file and select "Package to Flowchart: Generate Dependency Flowchart"
Or use the Command Palette (Ctrl+Shift+P) and search for "Package to Flowchart"
Right-click on any of these files:
requirements.txt
pyproject.toml
setup.py
setup.cfg
Pipfile
Commands
Command
Description
Package to Flowchart: Generate Dependency Flowchart
Generate flowchart from current file
Configuration
Open VS Code Settings and search for "Package to Flowchart":
Setting
Type
Default
Description
packageToFlowchart.maxDepth
number
3
Maximum depth of dependency tree
packageToFlowchart.showDevDependencies
boolean
false
Include dev dependencies
packageToFlowchart.layoutDirection
string
"TB"
Flowchart layout (TB/BT/LR/RL)
packageToFlowchart.theme
string
"default"
Mermaid theme
packageToFlowchart.groupByVersion
boolean
false
Group packages by version
Example
Given a requirements.txt:
fastapi==0.104.1
uvicorn[standard]>=0.24.0
pydantic>=2.0
python-multipart
requests
The extension generates a flowchart showing:
Your project as the root node
Each package as a child node
Dev dependencies (if enabled) shown with dashed lines
How It Works
Reads the dependency file content
Parses package names and versions
Generates a Mermaid flowchart definition
Renders in an interactive webview panel
Supports zoom, theme change, and export
Requirements
VS Code 1.99.0 or higher
Python project with dependency files
Contributing
Contributions welcome! Feel free to open an issue or submit a pull request.
License
MIT
Publisher : krextensions
Repository : https://github.com/karthyick/package-to-flowchart