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 if you want to import one specific module version, just add a second parameter to the import sentence:
my_func = yepcode.import_module("your-module", "v1.0");
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();