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.

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.


@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?

I was about to create the same feature request :slight_smile:

Using Python or JS code as you want, just like “code by zapier” :slight_smile:
If possible, I want to avoid learning JS :rofl:

If it helps I am almost finished with a new node for that provides the ability to run Python through an API call.