Setup kwargs
The setup_kwargs parameter can be used to provide a dictionary containing the project hook setup arguments. The concept behind this parameter is that at the beginning of the project lifecycle, the project can be configured with an hook script that will be executed when the project is created / got.
First of all, the configuration script MUST comply with the following format:
- It must be a Python script named
setup_project.pyinside the project context directory. - It must contain an handler (a python function) named
setupas entrypoint. - The
setupfunction must accept aProjectinstance as the only positional argument. setup_kwargsmust be passed as keyword arguments to thesetupfunction.
The project setup will create a .CHECK file at the end of the setup function execution. This sentinel file is used to indicate that the project is set up and new executions will be ready.
A use case scenario can be the instantiation of entities used by the user like artifacts or functions.
Example: