krish-adi / barfi

Python Flow Based Programming environment that provides a graphical programming environment.
https://barfi.readthedocs.io
MIT License
672 stars 73 forks source link

Do I have to connect manually? Can I use code to create a connection? #29

Open HungryFour opened 10 months ago

HungryFour commented 10 months ago

Thank you so much for open source. Would you like to ask, after this project has created two blocks, can you use code to connect the two blocks? Or do you have to drag the wire manually?

KayumovRu commented 9 months ago

(Perhaps there is an easier way) If you have saved the schema, then you can load it using manage_schema.load_schema_name(), write a function that will register "to" and "from" in the schema json and then save it under the same name using manage_schema.save_schema(). If you learn how to save (or at least execute it) programmatically from streamlit, then you can build a connection automatically.