Skip to content

zshzebra/n8n-py-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

n8n_py

The n8n_py SDK connects the n8n-nodes-python-function custom node with your python functions.

Examples

Hello World

Returns a hello world json response

from n8n_py import expose_function, String

@expose_function("Hello World", "returns a friendly greeting", [
	"name": String(friendly_name="Name", description="Name of person to greet", required=True, default="Alice")
])
def hello_world(name: str): dict[str, str]: # Exposed functions must return a JSON serializable dictionary
	return {
		"greeting": f"Hello {name}!"
	}

About

Template for n8n py

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages