Base Module
Abstract base classes for text extraction.
Classes:
Name | Description |
---|---|
FileTypeHandler |
Abstract base class for file type-specific handlers. |
TextExtractor |
Abstract base class for text extractors. |
Classes
FileTypeHandler
Bases: ABC
Abstract base class for file type-specific handlers.
Methods:
Name | Description |
---|---|
extract |
Extract text synchronously from a file. |
extract_async |
Extract text asynchronously from a file. |
Source code in textxtract/core/base.py
Functions
extract
abstractmethod
extract_async
abstractmethod
async
TextExtractor
Bases: ABC
Abstract base class for text extractors.
Methods:
Name | Description |
---|---|
extract |
Extract text synchronously from file path or bytes. |
Source code in textxtract/core/base.py
Functions
extract
abstractmethod
Extract text synchronously from file path or bytes.