Luís Murta ad3fe02e4f
Adds new JSON parser and moves init to Manager
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
2022-10-06 22:22:55 +01:00

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