BankAccount: A Single Bank Account#
- class means.types.BankAccount.BankAccount(*, uid: str, acct: ~means.types.Account.Account, name: str, header: str, user: ~means.types.User.User, filename_rgx: ~typing.Annotated[~_regex.Pattern, ~pydantic.types.GetPydanticSchema(get_pydantic_core_schema=~my.utils.SyntaxUtils.SyntaxUtils.pyd_schemify.<locals>.<lambda>, get_pydantic_json_schema=None)], bank: str = '', flags: ~means.types.BankAccount.BankAccount.Flag = <Flag: 0>, skip_lines: int = 0, ignore_strs: list[str] = [])#
Represents a single user-specific bank account.
I Files and Registry#
- BankAccount.owns_file(path: Annotated[Path, PathType(path_type=file)]) bool#
Check whether the given file path matches this bank account’s filename regex.
- classmethod BankAccount.setup(params: dict[str, dict]) None#
Build the
BankAccountregistry from parameter data.Each entry is registered with its user, augmented with any per-bank overrides, and given a compiled filename regex for recognizing the downloaded
.csvfiles it should handle.- Parameters:
params – A mapping of bank-account uid to its raw parameter dict.