PyWorkflowApp / visual-programming

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

Sample Node subclasses and Node execution #20

Closed reelmatt closed 4 years ago

reelmatt commented 4 years ago

This is my first stab at how our Node subclasses and Node execution might work. I'm still a little new to classes/inheritance in Python, so you might notice some Java-inspired patterns that could be re-written. But, I think this serves as a good foundation we can build on. This should match up with the discussions we've had, but there's definitely still some unanswered questions in this approach (custom nodes??) and room for improvement!

pyworkflow

Django views

Testing

reelmatt commented 4 years ago

I figured out support for sessions in Postman, at least for creating the new workflow. This now allows for modification of a workflow and POSTing of Nodes. Latest commits reflect these changes and simplifies some code.

The 'retrieve nodes' route was changed to pull in information from the Node module instead of hard-coded JSON data. To enable some retrieval, I changed some information from instance -> class attributes, but not sure if this is "correct" or any public/private variable information we might need to consider.