finalynx.budget.expense
Module Contents
Classes
API
- class finalynx.budget.expense.Status[source]
Bases:
enum.Enum
- UNKNOWN
‘UNKNOWN’
- TODO
‘TODO’
- DONE
‘DONE’
- SKIP
‘SKIP’
- class finalynx.budget.expense.Period[source]
Bases:
enum.Enum
- UNKNOWN
‘UNKNOWN’
- MONTHLY
‘MONTHLY’
- YEARLY
‘YEARLY’
- class finalynx.budget.expense.Constraint[source]
Bases:
enum.Enum
- UNKNOWN
‘UNKNOWN’
- FIXED
‘FIXED’
- MODULAR
‘MODULAR’
- NOCHOICE
‘NOCHOICE’
- VARIABLE
‘VARIABLE’
- OPTIONAL
‘OPTIONAL’
- HOBBIES
‘HOBBIES’
- FUN
‘FUN’
- class finalynx.budget.expense.Expense[source]
- timestamp: int
None
- amount: float
None
- merchant_name: str
None
- merchant_category: str
None
- status: finalynx.budget.expense.Status
None
- i_paid: Optional[float]
None
- payback: str = <Multiline-String>
- constraint: finalynx.budget.expense.Constraint
None
- period: finalynx.budget.expense.Period
None
- comment: str = <Multiline-String>
- cell_number: int
None
- as_datetime(timezone: str = 'Europe/Paris') datetime.datetime [source]
Return the timestamp as a datetime object in the given timezone.
- to_list() List[Any] [source]
Return the expense as a list of values. Used for Google Sheets export/import.
- static from_list(list: List[Any], cell_number: int = -1) finalynx.budget.expense.Expense [source]
Create an Expense object from a list of values. Used for Google Sheets export/import.
- static from_dict(dict_: Dict[str, Any]) finalynx.budget.expense.Expense [source]
Create an Expense object from a dictionary. Used for JSON export/import.