finalynx.budget.source_base_expense

Module Contents

Classes

SourceBaseExpense

API

class finalynx.budget.source_base_expense.SourceBaseExpense(name: str, cache_validity: int = 12)[source]

Bases: finalynx.fetch.source_base.SourceBase

fetch(clear_cache: bool) rich.tree.Tree[source]

Fetch data online from a source that contains investment Line objects. :param list_expen

Parameters:

clear_cache – Delete cached data to immediately fetch data online, defaults to False

Returns:

A lsit of Expense objects fetched from the source.

get_expenses() List[finalynx.budget.expense.Expense][source]
Returns:

The list of expenses found after calling fetch().

_register_expense(timestamp: int, amount: float, currency: str, merchant_name: str, merchant_category: str) None[source]

Internal method used to register a new expense found from the source.