Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygraph_mapper-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygraph_mapper-0.1.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

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

Hashes for pygraph_mapper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1219293f1544f9df4f75836db23a18bdaa3a96bb9478fc221d602c8824af79a
MD5 956bbd903f7039c3d46d7dce3e8eaac2
BLAKE2b-256 45c923f5a6a52aa5d4cd40adf6fae9791a98b96be55397224ce171fdadd432b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygraph_mapper-0.1.0.tar.gz:

Publisher: publish.yml on sohamsangole/pygraph-mapper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pygraph_mapper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04319418f383908cef130750da83084ab137ef104f58768ed162c0b5b453d287
MD5 1844529a2322d322a636a06e7529316c
BLAKE2b-256 37a301b4c210139735a637993d4f8a54e76daa0de9cdce989b9fd5570d640ffc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygraph_mapper-0.1.0-py3-none-any.whl:

Publisher: publish.yml on sohamsangole/pygraph-mapper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page