Config
The following keys are available for the input configuration:
-
extractor: Which extractor to use for processing the matched file. This can be:- A built-in extractor name from
beanhub-extract(e.g.,mercury,chase_credit_card,plaid) - A custom extractor via module URI:
module://package.module.ExtractorClass(e.g.,module://my_extractors.CustomExtractor) nullor omitted to enable auto-detection (beanhub-import will try to guess which built-in extractor to use)
Note: Custom extractors loaded via
module://must:- Implement the Extractor interface from beanhub-extract (have
__init__accepting a file object and__call__returning a generator of Transaction objects) - Be available in Python's
sys.path(install the package or setPYTHONPATH) - Be specified explicitly (auto-detection only works with built-in extractors)
Example:
- A built-in extractor name from
-
default_file: The default output file for generated transactions from the matched file to use if not specified in theadd_txnaction. prepend_postings: Postings are to be prepended for the generated transactions from the matched file. A list of posting templates as described in the Add Transaction Action section.append_postings: Postings are to be appended to the generated transactions from the matched file. A list of posting templates as described in the Add Transaction Action section.default_txn: The default transaction template values to use in the generated transactions from the matched file. Please see the Add Transaction Action section.