PyWorkflowApp / visual-programming

A Python Visual Programming Workspace for Data Science
MIT License
31 stars 12 forks source link

Refactors CLI to reduce need for special execute functions #90

Closed reelmatt closed 4 years ago

reelmatt commented 4 years ago

stdout change: The CLI should operate much the same way, with one key difference. Now, instead of reading the data file from the WriteCsvNode (aka, a pandas DataFrame), it passes the stdout buffer to the Node to output there instead. Now, you get CSV data output to the terminal instead of JSON, so you could further manipulate data more easily. For example

pyworkflow execute ~/Downloads/test_workflow.json < ~/Downloads/quadrants2.csv | cut -d"," -f2

would take the output and display the items from column 2.

What was refactored:

Minor improvements: