moban icon indicating copy to clipboard operation
moban copied to clipboard

tabular data processor

Open jayvdb opened this issue 6 years ago • 3 comments

load tabular data, and process each row with the same template, emitting a file for each row.

E.g. https://github.com/natehardison/sendtmail/blob/master/README.md

(but ignore email sending; that is a prob for a different issue)

jayvdb avatar Jan 29 '19 03:01 jayvdb

And https://github.com/jordanncg/Bison/blob/master/bison/libs/process.py

jayvdb avatar Jan 29 '19 04:01 jayvdb

For the data side, we need to import the data file (pyexcel loaders?) and allow the user to give it a top level name in the moban internal data dictionary.

Then a separate enhancement is needed to emit one file per row.

jayvdb avatar Jan 29 '19 04:01 jayvdb

by default, pyexcel-io provides a dictionary.

single sheet: { "data": [[1,2]]}

multiple sheets: {"pyexcel-sheet1": [[1,2]], "pyexcel-sheet2": [[3,4]]}

The keys need to be tweeked so that templating would work seamlessly.

chfw avatar Jan 29 '19 07:01 chfw