Core Parsing Methods
parse()
Parse local files, file-like objects, or raw bytes content.Union[str, Path, bytes, BinaryIO, List[...]]
required
Files to parse. Can be:
- File path (string or Path object)
- Raw bytes content
- File-like object (BinaryIO)
- List of any of the above
ProcessingMode
default:"ProcessingMode.DEFAULT"
Processing mode:
DEFAULT or ADVANCEDOptional[Callable]
default:"None"
Callback function to monitor parsing progress
float
default:"60.0"
Maximum time to wait for parsing completion (seconds)
float
default:"2.0"
Interval between status checks (seconds)
DocumentBatch - Collection of parsed documents
parse_urls()
Parse documents from URLs.Union[str, List[str]]
required
URLs to parse. Can be a single URL string or list of URLs
ProcessingMode
default:"ProcessingMode.DEFAULT"
Processing mode:
DEFAULT or ADVANCEDOptional[Callable]
default:"None"
Callback function to monitor parsing progress
float
default:"120.0"
Maximum time to wait for parsing completion (seconds)
float
default:"2.0"
Interval between status checks (seconds)
DocumentBatch - Collection of parsed documents
get_job_status()
Get the current status of a parsing job.str
required
The job ID to check status for
JobStatus - Current job status information
Amazon S3 Methods
list_s3_buckets()
List available S3 buckets.S3BucketList - List of available S3 buckets
list_s3_folder()
List contents of an S3 folder.str
required
S3 bucket name
str
default:""
Path within the bucket (empty for root)
int
default:"1000"
Maximum number of items to return
S3FolderContents - Contents of the S3 folder
parse_s3_folder()
Parse all documents in an S3 folder.str
required
S3 bucket name
str
default:""
Path within the bucket to parse
ProcessingMode
default:"ProcessingMode.DEFAULT"
Processing mode:
DEFAULT or ADVANCEDOptional[Callable]
default:"None"
Callback function to monitor parsing progress
float
default:"300.0"
Maximum time to wait for parsing completion (seconds)
float
default:"5.0"
Interval between status checks (seconds)
DocumentBatch - Collection of parsed documents
Microsoft SharePoint Methods
list_sharepoint_sites()
List available SharePoint sites.SharePointSiteList - List of available SharePoint sites
list_sharepoint_drives()
List drives in a SharePoint site.str
required
SharePoint site ID
SharePointDriveList - List of drives in the site
parse_sharepoint_folder()
Parse documents in a SharePoint folder.str
required
SharePoint site ID
str
required
SharePoint drive ID
str
default:""
Path within the drive to parse
ProcessingMode
default:"ProcessingMode.DEFAULT"
Processing mode:
DEFAULT or ADVANCEDOptional[Callable]
default:"None"
Callback function to monitor parsing progress
float
default:"300.0"
Maximum time to wait for parsing completion (seconds)
float
default:"5.0"
Interval between status checks (seconds)
DocumentBatch - Collection of parsed documents
Box Methods
list_box_folders()
List folders in Box.str
default:"0"
Parent folder ID (“0” for root folder)
BoxFolderList - List of folders
parse_box_folder()
Parse documents in a Box folder.str
required
Box folder ID to parse
ProcessingMode
default:"ProcessingMode.DEFAULT"
Processing mode:
DEFAULT or ADVANCEDOptional[Callable]
default:"None"
Callback function to monitor parsing progress
float
default:"300.0"
Maximum time to wait for parsing completion (seconds)
float
default:"5.0"
Interval between status checks (seconds)
DocumentBatch - Collection of parsed documents
Dropbox Methods
list_dropbox_folders()
List folders in Dropbox.str
default:""
Dropbox folder path (empty for root)
DropboxFolderList - List of folders
parse_dropbox_folder()
Parse documents in a Dropbox folder.str
required
Dropbox folder path to parse
ProcessingMode
default:"ProcessingMode.DEFAULT"
Processing mode:
DEFAULT or ADVANCEDOptional[Callable]
default:"None"
Callback function to monitor parsing progress
float
default:"300.0"
Maximum time to wait for parsing completion (seconds)
float
default:"5.0"
Interval between status checks (seconds)
DocumentBatch - Collection of parsed documents
Async Methods
All methods are available in async versions with theAsyncLexa client:
Next Steps
Learn about error handling and client configuration for production use.

