Sample Importer
from beancount.core.amount import Amount
from beancount.core.number import Number
from beancount.ingest.importer import ImporterProtocol
class SampleImporter(ImporterProtocol):
# ...
def identify(self, file_):
"""Check if file_ is from the bank we're supposed to work with
"""
# ...
def extract(self, file_):
"""Read file_, and emit a list of beancount data structures
"""