invoice2data icon indicating copy to clipboard operation
invoice2data copied to clipboard

extract_data input_module kwarg accepts strings

Open jagilley opened this issue 6 years ago • 1 comments

I think it makes sense to modify extract_data to accept strings as the canonical input_module kwarg, as it saves the user from having to instantiate their own input_module. (Especially because we have the nice input_mapping dict just a few lines earlier!) This change would default the input_module kwarg to a string, but still maintain the legacy API because of the if clause on line 78 of my fork.

jagilley avatar Nov 14 '19 19:11 jagilley

Good to merge this, but docs should be updated too.

m3nu avatar Aug 10 '20 08:08 m3nu