Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Package to FlowchartNew to Visual Studio Code? Get it now.
Package to Flowchart

Package to Flowchart

kr

|
3 installs
| (0) | Free
Visualize Python package dependencies from requirements.txt or pyproject.toml as interactive Mermaid flowcharts
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Download the .vsix file from the latest release
  2. In VS Code, go to Extensions view (Ctrl+Shift+X)
  3. Click the "..." (More Actions) button
  4. Select "Install from VSIX..." and choose the downloaded file

Usage

  1. Open a Python dependency file (requirements.txt, pyproject.toml, etc.)
  2. Right-click on the file and select "Package to Flowchart: Generate Dependency Flowchart"
  3. Or use the Command Palette (Ctrl+Shift+P) and search for "Package to Flowchart"

Context Menu

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

  1. Reads the dependency file content
  2. Parses package names and versions
  3. Generates a Mermaid flowchart definition
  4. Renders in an interactive webview panel
  5. 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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft