Python node

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.

3.) pandas
similar to 2 but with everything setup for pandas input and output.
panda is very powerfull and can read and output json.
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_json.html

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.

Hey @symn!

Welcome to the community :wave:

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.

3 Likes

@symn is hinting to using python inside a node such as the function node

I think this is a great idea. Is there a feature like this in the works?