codegraph_python/
lib.rs

1//! # codegraph-python
2//!
3//! Python parser plugin for CodeGraph - extracts code entities and relationships
4//! from Python source files.
5//!
6//! ## Features
7//!
8//! - Parse single Python files or entire projects
9//! - Extract functions, classes, methods with full metadata
10//! - Track relationships (calls, imports, inheritance)
11//! - Configurable behavior (visibility filtering, parallel processing)
12//! - Safe: No panics, graceful error handling
13//!
14//! ## Quick Start
15//!
16//! ```rust,no_run
17//! use codegraph_python::Parser;
18//! # use codegraph_python::error::Result;
19//!
20//! # fn main() -> Result<()> {
21//! // Create parser with default configuration
22//! let parser = Parser::new();
23//!
24//! // Parse will be implemented in Phase 3
25//! # Ok(())
26//! # }
27//! ```
28
29pub mod config;
30pub mod entities;
31pub mod error;
32pub mod relationships;
33
34mod builder;
35mod extractor;
36mod parser;
37// mod visitor; // Temporarily disabled - will be re-enabled in a future task
38
39pub use config::ParserConfig;
40pub use error::{ParseError, Result};
41pub use parser::{FileInfo, Parser, ProjectInfo};