API Reference¶
This section contains the complete API reference for GridGulp, automatically generated from the source code.
Core Classes¶
GridGulp¶
The main entry point for table detection and extraction.
Config¶
Configuration options for customizing GridGulp behavior.
Models¶
DetectionResult¶
The result of table detection, containing all detected tables and metadata.
TableInfo¶
Information about a detected table including range, confidence, and headers.
FileInfo¶
File metadata and type information.
SheetData¶
Raw sheet data with cell access methods.
Detectors¶
SimpleCaseDetector¶
Fast detector for single tables starting near A1.
IslandDetector¶
Detects multiple disconnected data regions.
ExcelMetadataExtractor¶
Extracts native Excel table definitions.
MultiHeaderDetector¶
Detects complex multi-row headers with merged cells.
Readers¶
ExcelReader¶
Reader for Excel files using openpyxl.
CSVReader¶
Reader for CSV and delimited text files.
TextReader¶
Reader for generic text files with table detection.
Utilities¶
FileFormatDetector¶
Advanced file type detection using multiple methods.
DataFrameExtractor¶
Converts detected tables to pandas DataFrames.
Exceptions¶
All GridGulp exceptions inherit from GridGulpError:
FileNotFoundError- File does not existReaderError- Error reading fileUnsupportedFormatError- File format not supportedDetectionError- Error during table detectionExtractionError- Error extracting table dataConfigError- Invalid configuration
Type Hints¶
GridGulp uses extensive type hints. Key types include: