tariochbctools.importers.nordigen package

Submodules

tariochbctools.importers.nordigen.importer module

exception tariochbctools.importers.nordigen.importer.HttpServiceException[source]

Bases: Exception

class tariochbctools.importers.nordigen.importer.Importer[source]

Bases: ImporterProtocol

An importer for Nordigen API (e.g. for Revolut).

extract(file, existing_entries)[source]

Extract transactions from a file.

If the importer would like to flag a returned transaction as a known duplicate, it may opt to set the special flag “__duplicate__” to True, and the transaction should be treated as a duplicate by the extraction code. This is a way to let the importer use particular information about previously imported transactions in order to flag them as duplicates. For example, if an importer has a way to get a persistent unique id for each of the imported transactions. (See this discussion for context: https://groups.google.com/d/msg/beancount/0iV-ipBJb8g/-uk4wsH2AgAJ)

Parameters:
  • file – A cache.FileMemo instance.

  • existing_entries – An optional list of existing directives loaded from the ledger which is intended to contain the extracted entries. This is only provided if the user provides them via a flag in the extractor program.

Returns:

A list of new, imported directives (usually mostly Transactions) extracted from the file.

file_account(file)[source]

Return an account associated with the given file.

Note: If you don’t implement this method you won’t be able to move the files into its preservation hierarchy; the bean-file command won’t work.

Also, normally the returned account is not a function of the input file–just of the importer–but it is provided anyhow.

Parameters:

file – A cache.FileMemo instance.

Returns:

The name of the account that corresponds to this importer.

identify(file)[source]

Return true if this importer matches the given file.

Parameters:

file – A cache.FileMemo instance.

Returns:

A boolean, true if this importer can handle this file.

tariochbctools.importers.nordigen.nordigen_config module

tariochbctools.importers.nordigen.nordigen_config.build_header(token)[source]
tariochbctools.importers.nordigen.nordigen_config.check_result(result)[source]
tariochbctools.importers.nordigen.nordigen_config.get_token(secret_id, secret_key)[source]
tariochbctools.importers.nordigen.nordigen_config.list_accounts(token)[source]
tariochbctools.importers.nordigen.nordigen_config.list_bank(token, country)[source]
tariochbctools.importers.nordigen.nordigen_config.main(args)[source]
tariochbctools.importers.nordigen.nordigen_config.parse_args(args)[source]
tariochbctools.importers.nordigen.nordigen_config.run()[source]

Entry point for console_scripts

Module contents