Skip to content

API Reference parrot_tools.hooba.importer

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.hooba.importer

View source

BBVA statement → purchase-invoice drafts (FEAT-602 M10). Transport-agnostic.

Alias BankExpenseRow

Re-exported from parrot_tools.hooba.models.BankExpenseRow.

Class BbvaImporter

Plan and apply BBVA rows as Hooba purchase-invoice drafts.

Parameter Type Default Description
engine RuleEngine
find_contact ContactFinder
create_draft DraftCreator
account_id Optional[str] None

Method BbvaImporter.plan

Build drafts for rows not yet completed; returns (planned, manifest, skipped).

plan(statement: BbvaStatement, *, period: str) -> tuple[list[PlannedDraft], ImportManifest, list[dict]]

Parameter Type Default Description
statement BbvaStatement
period str

Returns: tuple[list[PlannedDraft], ImportManifest, list[dict]]

Method BbvaImporter.apply

Create drafts sequentially; persist progress after each receipt (never before).

apply(planned: list[PlannedDraft], manifest: ImportManifest) -> list[DraftReceipt]

Parameter Type Default Description
planned list[PlannedDraft]
manifest ImportManifest

Returns: list[DraftReceipt]

Alias BbvaStatement

Re-exported from parrot_tools.hooba.models.BbvaStatement.

Attribute CONTACT_THRESHOLD

Attribute ContactFinder

Alias ContactMatch

Re-exported from parrot_tools.hooba.models.ContactMatch.

Alias DeductibilityVerdict

Re-exported from parrot_tools.hooba.models.DeductibilityVerdict.

Attribute DraftCreator

Alias DraftReceipt

Re-exported from parrot_tools.hooba.models.DraftReceipt.

Alias ImportManifest

Re-exported from parrot_tools.hooba.bank.ImportManifest.

Class PlannedDraft

One bank row, its verdict, and the draft it will become.

Fields:

Field Type Default Description
row BankExpenseRow
verdict DeductibilityVerdict
draft PurchaseInvoiceDraft
contact Optional[ContactMatch] None

Alias PurchaseInvoiceDraft

Re-exported from parrot_tools.hooba.models.PurchaseInvoiceDraft.

Alias PurchaseInvoiceLineDraft

Re-exported from parrot_tools.hooba.models.PurchaseInvoiceLineDraft.

Alias RuleEngine

Re-exported from parrot_tools.hooba.rules.RuleEngine.

Alias load_manifest

Re-exported from parrot_tools.hooba.bank.load_manifest.

Attribute logger

Alias write_manifest

Re-exported from parrot_tools.hooba.bank.write_manifest.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally