To index Python we use SourceGraph's SCIP indexer for python. SCIP is a new format for tools to share information about code. Releases of scip-python can be installed with
npm and used as indexers for SCIP, which Glean will accept. The indexer itself requires a python runtime.
Run the indexer
The indexer is run via the main
glean CLI tool.
> cabal build exe:glean
And index your Python repository with:
glean index python-scip DIR --db NAME/INSTANCE
DIRis the root directory containing the Python project
name/hashis the name of the repository to create
Provide the usual
In the shell
Python source can also be indexed directly from the Glean shell:
:index python-scip DIR
The shell will pick a DB name and hash for you based on
The schema is in glean/schema/source/scip.angle