Everybody knows the power of python and it would be great if it could be used in n8n.
I can think of 3 different nodes:
1.) general python script.
gets the json input and does something but does not produce a json output
ideally also with the ability to merge an arbitary number of streams.
2.) python json in → json out.
similar to the javascirpt function.
Then it would also be great if there is an official docker container with python preinstalled and the ability to use pip install to install other packages in a persistent way.
This are some rough ideas to get the discussion going.
I know that you could use the execute command node, which is good to have, but a better integration of python would be great.
Thank you for opening this Feature Request. I have come across a couple of community members who are using Python inside n8n. You can check the topic here: Running Python with n8n
I also think that this is a good idea, I have very limited experience with Python, but you can still do all this in n8n without the need for Python. You can take a look at the Core nodes, which allows you to perform certain actions without writing code!
Hi, Yes I saw the topic you mention, which talks about the execute command node but not dedicated python nodes. I think the great thing with n8n is that you can combine no-code blocks with code blocks. Also sometimes its just faster and easier to write some code. Together with the existing core nodes this would open a lot more possibilities.
This would also potentially attract more users form the huge python community.
This would be so nice if I can directly use python code
Think it would be good to have in the end a return statement where you can output data that can be used in following notes
Just adding my support here. I’ve finally managed to move away from Zapier (yay!) but this is a feature that I’m missing big time. I find Python easier than Javascript and I really hope to see native Python support added in a later release.
We are currently thinking about using a different library than the one I used in my above PoC. One that would be more secure. Sadly do not have an ETA yet. But I hope we can get it finished soon.