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!)
Release files for pygraph-mapper 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygraph_mapper-0.1.0.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygraph_mapper-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.1 kB
Release files / pygraph_mapper-0.1.0.tar.gz
| Download URL | pygraph_mapper-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1219293f1544f9df4f75836db23a18bdaa3a96bb9478fc221d602c8824af79a
|
|
BLAKE2b-256 checksum How to use checksums |
45c923f5a6a52aa5d4cd40adf6fae9791a98b96be55397224ce171fdadd432b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logRelease files / pygraph_mapper-0.1.0-py3-none-any.whl
| Download URL | pygraph_mapper-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04319418f383908cef130750da83084ab137ef104f58768ed162c0b5b453d287
|
|
BLAKE2b-256 checksum How to use checksums |
37a301b4c210139735a637993d4f8a54e76daa0de9cdce989b9fd5570d640ffc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency log