Skip to main content

modules_snippets_py

To use a module, use the custom import syntax in the process (or other module) where you want to use it.

my_func = yepcode.import_module("your-module");
tip

Modules also support versioning and aliases, and if you want to import one specific module version or alias, just add a second parameter to the import sentence:

my_func = yepcode.import_module("your-module", "v1.0");
warning

Modules referenced in any process cannot be renamed or deleted. This prevents breaking active schedules, webhooks, or forms that trigger the process execution.

You can have as many modules as needed, and they work like any Python module.

For example, a Python module exporting several functions:

def say_hello_to_mike():
print("Hello Mike!")

def say_hello_to_david():
print("Hello David!");

To use these functions, read them from the returned object:

say_hello_module = yepcode.import_module("say_hello");

say_hello_module.say_hello_to_mike();
say_hello_module.say_hello_to_david();