def __init__(self, beancount_file_path): self.beancount_file_path = beancount_file_path self.is_encrypted = encryption.is_encrypted_file(beancount_file_path) self.filters = { 'account': AccountFilter(), 'from': FromFilter(), 'payee': PayeeFilter(), 'tag': TagFilter(), 'time': TimeFilter(), } self.charts = Charts(self) self.watcher = Watcher() self.load_file()