
n8n-code-python
Write Python in n8n Code nodes (native Python, `language` pythonNative, n8n 2.x)
by czlonkowskiFree
Description
n8n-code-python is an agent skill from the n8n-skills collection, listed on skills.sh. It guides an AI agent in writing Python for n8n Code nodes, using the native Python runtime that n8n 2.x provides through a task runner. The skill warns that the older Pyodide Python beta is gone, and that the helpers it had, such as _input, _json, _node, _now, _today and _jmespath, now raise NameError, so code copied from old templates or forum posts often breaks. It also says that native Python gives you two variables and plain Python, with no imports such as json, datetime or re by default. Everything specific to n8n, such as the $ node references, Luxon and the helpers for HTTP requests, exists only in JavaScript. For that reason the skill asks the agent to use Python only when the user explicitly asks for it, and to check first whether an expression, an Edit Fields step or a native node such as Crypto, Date and Time, HTML or XML can do the job. It points to the JavaScript skill and the expression syntax skill. The skill is listed as free on skills.sh.…
Highlights
- Native Python runtime for n8n 2.x Code nodes
- Lists helpers that no longer work
- Advises JavaScript unless Python is requested
- Points to native nodes that may avoid code
Ratings & Reviews
No ratings yet
Be the first to rate n8n-code-python.
People also visit
n8n-code-python FAQ
What does the n8n-code-python skill do?
It helps an AI agent write Python for n8n Code nodes that use the native Python runtime in n8n 2.x.
How do I install it?
Run: npx skills add https://github.com/czlonkowski/n8n-skills --skill n8n-code-python
Is it free?
Yes. The skill is listed as free on skills.sh.
Why does old Python code break?
The Pyodide Python beta was removed in n8n 2.0, so helpers such as _input and _json now raise NameError.
Does it import json or datetime by default?
No. The skill says native Python has no imports by default, so you import what you need yourself.
What are the best n8n-code-python alternatives?
Popular alternatives to n8n-code-python include n8n-code-tool, n8n-code-javascript and n8n-code-nodes-official. See all n8n-code-python alternatives







