Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate python code #39

Open
Sup3rGeo opened this issue Mar 18, 2019 · 4 comments
Open

Generate python code #39

Sup3rGeo opened this issue Mar 18, 2019 · 4 comments
Assignees
Labels

Comments

@Sup3rGeo
Copy link

Hi!

Is it available or planned anything like generating python code from the diagram?

Thanks

@pedroCabrera
Copy link
Collaborator

Yes it is on road map for version 2, currently under development!

@IlgarLunin
Copy link
Collaborator

@Sup3rGeo yes, but this will not be a normal python code. But special api, which is doing real work under the hood. However, generation normal python code is also will be possible, and we will provide examples

@Sup3rGeo
Copy link
Author

Thanks, that's great news.

In fact, if PyFlow supports having any python function from any importable python module as nodes, and if it generates just plain python code out of the connections, then it will be able to work (without any kind of additional integration) for any application where some python scripting might be needed but users typically don't enjoy writing code (e.g. Test automation).

@IlgarLunin IlgarLunin added core enhancement New feature or request new feature labels Aug 31, 2019
@IlgarLunin IlgarLunin self-assigned this Oct 14, 2019
@excitedbox
Copy link

I posted an issue (#82) suggesting a function definition system to add functions as nodes quickly and easily. It would allow adding not just python but other languages as well.It would essentially allow pyflow to act as a full IDE.

Basically an Asset library and a function library. One would contain the main functions of a language and the other contains a folder tree of installed libraries with a list of it´s functions.

The definitions file would either have to automatically convert arguments to node inputs or someone would have to replace the arguments with some kind of placeholder code like:
function doSomething(<inputA, argumentName, string>,<inputB, argumentName, int>){ some code return=<outputA, argumentName, string>; }

That would take time but I think pyflow would be so useful with this feature plenty of people would be willing to create definitions for libraries. A language like C or C++ only has a few hundred functions so in a couple hours it could then be added to the editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants