Skip to content

Generates import graph for various projects (currently only python).

License

Notifications You must be signed in to change notification settings

Devzard/import-graph-generator

Repository files navigation

File Imports graph maker

An application that parses your code to create an interactive graph of all file imports.

Currently supported languages:

  1. 🐍 Python

Demo

import-graph-generator-demo.mov

How to run the app?

1. Build frontend

  1. cd into graph-renderer-js
     cd graph-renderer-js
  2. Install dependencies
     npm i
     # or
     pnpm i
  3. Build
     pnpm run build

2. Run App

  1. Create python environment
    conda create --name graph-maker python=3.12.3
    # activate
    conda activate graph-maker
  2. Install dependencies
    pip install -r requirements.txt
  3. Run the server
    python main.py
  4. Visit localhost:8000/index.html

Contributing

Setup environment

Backend

  1. Create environment
    conda create --name graph-maker python=3.12.3
    # activate
    conda activate graph-maker
  2. Install dependencies
    pip install -r requirements.txt

Frontend

Go to /graph-renderer-js

cd /graph-renderer-js

then

npm install
# or
pnpm install

Run

Backend

At project root run

python main.py

Frontend

At /graph-renderer-js run

pnpm run dev
# or
npm run dev

Site will be live at localhost:5173

About

Generates import graph for various projects (currently only python).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published