Turn any Python repository into a queryable knowledge graph using static analysis
Project description
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:
pip install -e .
Quick Start
1. Build the Graph
Map an entire Python project to a local .db file:
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:
pygraphit-query login --depth 2 --db my_project.db
3. Visualize
Generate an interactive HTML graph of the architecture:
pygraphit-visualize --db my_project.db --out graph_view.html
(Open graph_view.html in any web browser!)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygraph_mapper-0.1.0.tar.gz.
File metadata
- Download URL: pygraph_mapper-0.1.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1219293f1544f9df4f75836db23a18bdaa3a96bb9478fc221d602c8824af79a
|
|
| MD5 |
956bbd903f7039c3d46d7dce3e8eaac2
|
|
| BLAKE2b-256 |
45c923f5a6a52aa5d4cd40adf6fae9791a98b96be55397224ce171fdadd432b9
|
Provenance
The following attestation bundles were made for pygraph_mapper-0.1.0.tar.gz:
Publisher:
publish.yml on sohamsangole/pygraph-mapper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygraph_mapper-0.1.0.tar.gz -
Subject digest:
d1219293f1544f9df4f75836db23a18bdaa3a96bb9478fc221d602c8824af79a - Sigstore transparency entry: 2178457759
- Sigstore integration time:
-
Permalink:
sohamsangole/pygraph-mapper@e41150569f34b5db1977b008b65440ba10c0d016 -
Branch / Tag:
refs/tags/v0.1.0-fix - Owner: https://github.com/sohamsangole
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e41150569f34b5db1977b008b65440ba10c0d016 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pygraph_mapper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pygraph_mapper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04319418f383908cef130750da83084ab137ef104f58768ed162c0b5b453d287
|
|
| MD5 |
1844529a2322d322a636a06e7529316c
|
|
| BLAKE2b-256 |
37a301b4c210139735a637993d4f8a54e76daa0de9cdce989b9fd5570d640ffc
|
Provenance
The following attestation bundles were made for pygraph_mapper-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on sohamsangole/pygraph-mapper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygraph_mapper-0.1.0-py3-none-any.whl -
Subject digest:
04319418f383908cef130750da83084ab137ef104f58768ed162c0b5b453d287 - Sigstore transparency entry: 2178457769
- Sigstore integration time:
-
Permalink:
sohamsangole/pygraph-mapper@e41150569f34b5db1977b008b65440ba10c0d016 -
Branch / Tag:
refs/tags/v0.1.0-fix - Owner: https://github.com/sohamsangole
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e41150569f34b5db1977b008b65440ba10c0d016 -
Trigger Event:
release
-
Statement type: