bskinn / pent

pent Extracts Numerical Text -- Mini-language driven parser for structured numerical data in text
MIT License
20 stars 3 forks source link

Add Parser argument taking a callable, that postprocesses collected data #68

Open bskinn opened 5 years ago

bskinn commented 5 years ago

Could have an optional initialization parameter, say postprocessor, for Parser, that takes a callable... that takes the data structure generated from the pent parsing, and then converts it down stream to the desired output format.

As an additional enhancement, then there could be a library of command post-processing helpers, perhaps there taking advantage of things like numpy, that users could exploit.