n8n2py Bidirectional Converter
Convert between n8n workflows and Python (FastAPI) scripts directly in VS Code.
Features
- Bidirectional Conversion: Seamlessly convert n8n JSON workflows to Python code and vice versa.
- Python Generation: Generate clean, production-ready Python code, including FastAPI wrappers.
- Workflow Visualization: (Coming soon) Visualize your workflows directly within the editor.
- Local Privacy: All conversions happen locally on your machine. No data leaves your computer.
Usage
- Open the n8n2py extension from the activity bar or use the command palette.
- To Convert to Python:
- Select an n8n workflow JSON file.
- Click "Convert to Python".
- Review and save the generated Python code.
- To Convert to n8n:
- Select a Python script.
- Click "Convert to n8n".
- Get a JSON workflow ready to import into n8n.
Requirements
- VS Code 1.80.0 or higher.
- A valid n8n workflow JSON or a compatible Python script.
Extension Settings
This extension contributes the following settings:
n8n2py.enableTelemetry: Enable/disable usage telemetry (default: true).
Known Issues
- Complex n8n nodes might require manual adjustments in the generated Python code.
- "Code" nodes in n8n are converted as comments or placeholder functions and need manual implementation.
Release Notes
2.0.0
- Major release of n8n2py Bidirectional Converter.
- Support for core n8n nodes and basic Python script generation.
| |