Metadata-Version: 2.4
Name: pygraph-mapper
Version: 0.1.0
Summary: Turn any Python repository into a queryable knowledge graph using static analysis
Home-page: https://github.com/sohamsangole/pyGraph
Author: Soham Sangole
Author-email: sasangole2019@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-python
Dynamic: summary

# PyGraphIt

Turn any Python repository into a queryable knowledge graph using static analysis via Python's built-in `ast`. It instantly finds functions, classes, and variables, maps how they interact, and saves the graph and source code to a portable SQLite database.

## Installation

Install directly from the source code:

```bash
pip install -e .
```

## Quick Start

### 1. Build the Graph
Map an entire Python project to a local `.db` file:

```bash
pygraphit-index /path/to/project --db my_project.db
```

### 2. Query the Graph
Retrieve code chunks and trace dependencies for any node (e.g. `login`), traversing outwards by `--depth`:

```bash
pygraphit-query login --depth 2 --db my_project.db
```

### 3. Visualize
Generate an interactive HTML graph of the architecture:

```bash
pygraphit-visualize --db my_project.db --out graph_view.html
```
*(Open `graph_view.html` in any web browser!)*
