There is now the possibility to download the transactions for all banks in the banks table in the DB. `NordigenInput` parse method fully functional, and entire chain from downloading to parsing (simple w/ converter) to writing to DB. DbTransaction type added __conform__ to simplify writes to DB. Get bank methods added to both `Manager` and `DatabaseClient`. Warning: csv parser most likely not working at this point. Issues #16 and #17
22 lines
466 B
Python
22 lines
466 B
Python
from __future__ import annotations
|
|
from abc import ABC, abstractmethod
|
|
from typing import TYPE_CHECKING
|
|
|
|
from pfbudget.common.types import Transactions
|
|
|
|
if TYPE_CHECKING:
|
|
from pfbudget.core.manager import Manager
|
|
|
|
|
|
class Input(ABC):
|
|
def __init__(self, manager: Manager):
|
|
self._manager = manager
|
|
|
|
@abstractmethod
|
|
def parse(self) -> Transactions:
|
|
return NotImplemented
|
|
|
|
@property
|
|
def manager(self):
|
|
return self._manager
|