Adds a new abstract `Input` interface for the manager to use different input handlers with the same methods. The Nordigen class and a new JSON parser descend from it. The previous csv parser will also eventually. New converter for list input also added. Issue #19
14 lines
294 B
Python
14 lines
294 B
Python
from abc import ABC, abstractmethod
|
|
|
|
from pfbudget.core.transactions import Transactions
|
|
|
|
|
|
class Input(ABC):
|
|
@abstractmethod
|
|
def __init__(self, options: dict):
|
|
self.options = options
|
|
|
|
@abstractmethod
|
|
def transactions(self) -> Transactions:
|
|
return NotImplemented
|