Expand description
Batch ingestion — walk a directory tree, parse all Python files, build Arrow tables.
Two ingestion modes are available:
-
Generic (
ingest_directory/ingest_files): usesparser::parse_python_file, emitting language-agnosticCodeNodeKindvariants (File, Module, Class, Function, etc.). Backward-compatible with existing callers. -
Python-specific (
ingest_python_directory/Language::Python): usesPythonParser, emitting Python-specific kinds (PythonFunction, PythonClass, etc.) with full position metadata populated.
Usage:
ⓘ
// Generic (backward compat)
let result = ingest_directory(Path::new("brain/"))?;
println!("{}", result.summary());
// Python-specific with position metadata
let result = ingest_python_directory(Path::new("_archive/brain-v13/brain/"))?;
println!("{}", result.summary());Structs§
- Ingest
Result - Result of a full directory ingestion.
Enums§
- Ingest
Error - Errors from ingestion.
- Language
- Language selection for the ingest pipeline.
Functions§
- callers_
of - Query callers of a function/method by name.
- ingest_
directory - Ingest all Python and Rust files under a directory into a CodeGraph.
- ingest_
files - Ingest a specific list of source files (Python and Rust).
- ingest_
python_ directory - Ingest all Python files under a directory using the Python-specific parser.
- ingest_
python_ files - Ingest a specific list of Python files using the Python-specific parser.
- nodes_
in_ file - Query nodes by file path (returns nodes whose ID contains the path).