### Install Bank Statement Parser Source: https://bankstatementparser.com Install the library using pip. This is the first step to using the bank statement parsing capabilities. ```bash pip install bankstatementparser ``` -------------------------------- ### Basic Statement Parsing Source: https://bankstatementparser.com Detect the format of a statement file, create a parser instance, and parse the statement into a pandas DataFrame. Ensure the statement file exists in the specified path. ```python from bankstatementparser import create_parser, detect_statement_format fmt = detect_statement_format("statement.xml") parser = create_parser("statement.xml", fmt) df = parser.parse() # pandas DataFrame, ready to use ``` -------------------------------- ### Hybrid PDF Parsing with Smart Ingest Source: https://bankstatementparser.com Utilize the smart_ingest function for parsing PDF statements, which automatically selects the best extraction method (deterministic, LLM, or vision). The result includes the source method and verification status. ```python # Parse PDFs with the hybrid pipeline (v0.0.5+) from bankstatementparser.hybrid import smart_ingest result = smart_ingest("statement.pdf") print(result.source_method) # "deterministic" | "llm" | "vision" print(result.verification.status) # VERIFIED | DISCREPANCY | FAILED ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.