Python
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 yarn or npm and used as indexers for SCIP, which Glean will accept. The indexer itself requires a python runtime.
Run the indexerβ
Ensure that you have built and installed Glean and
the glean executable is on your PATH.
You can index a Python repository with:
glean index python-scip DIR --db-root DB --db NAME/INSTANCE
where
- DBis the directory where you want to store your Glean DBs
- DIRis the root directory containing the Python project
- NAME/INSTANCEis the name of the repository to create
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 DIR.
Schemaβ
The schema is in glean/schema/source/scip.angle