Crate codegraph_python

Crate codegraph_python 

Source
Expand description

§codegraph-python

Python parser plugin for CodeGraph - extracts code entities and relationships from Python source files.

§Features

  • Parse single Python files or entire projects
  • Extract functions, classes, methods with full metadata
  • Track relationships (calls, imports, inheritance)
  • Configurable behavior (visibility filtering, parallel processing)
  • Safe: No panics, graceful error handling

§Quick Start

use codegraph_python::Parser;

// Create parser with default configuration
let parser = Parser::new();

// Parse will be implemented in Phase 3

Re-exports§

pub use config::ParserConfig;
pub use error::ParseError;
pub use error::Result;

Modules§

config
entities
error
relationships

Structs§

FileInfo
Information about a parsed file
Parser
Main parser for Python source code
ProjectInfo
Information about a parsed project