juturna.utils.node_utils package#
Module contents#
- juturna.utils.node_utils.node_stub(node_name: str, node_type: str, node_class_name: str | None = None, destination: str = './plugins')#
Create a basic node template with a config file and a README file. The template is created in the specified destination folder.
- Parameters:
node_name (str) – The name of the node. This is the name of the folder that will be created in the destination folder. Do not prefix the name with a underscore, as this will be done automatically.
node_type (str) – The type of the node.
node_class_name (str) – The name of the class that will be created in the node file. If not provided, the class name will be generated by capitalising the first letter of each word in the node name, splitting by underscores.
destination (str) – The destination folder where the node template will be created. The default is ‘./plugins’.