Skip to content

About

Clones Github Repo and Generates HTML Static Call Graph using Pyvis

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

About

This repo contains the code to generate a static call graph for a given Github repository. The call graph is generated using the pycg tool, then visualized using Pyvis.

Dependencies

poetry

Poetry Setup

Run poetry init to initialize the virtual environment, then you can run the graph generation process by running poetry run make.

More on poetry

Steps to Generate Call Graph

   graph TD;
    A -->|"Stores GitHub Repository Folder in ./libraries (Default Folder)"| B
    B -->|"Stores JSON-format Call Graph in ./cg_jsons (Default Folder)"| C
    C -->|"Stores HTML-Format Pyvis Call Graph in ./cg_htmls"| D["Pipeline End"]
    A["call_graph/clone_github_repo.sh:<br />Clones Repository"] 
    B["call_graph/generate_cg_json.sh:<br />Generate Static Call Graph JSON"]
    C["call/graph/generate_call_graph.py<br />Produces Call Graph HTML"] 
Loading

Default Folder paths can be modified in the Makefile script. For example:

    poetry run make CODE_FOLDER=./new_folder \
                    JSON_FOLDER=./another_folder \
                    HTML_FOLDER=./new_folder

About

Clones Github Repo and Generates HTML Static Call Graph using Pyvis

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages