Initialize a Snowpark project¶
The first step when creating Snowpark projects is to create a project boilerplate. The snow init command creates a fully-functional boilerplate with the following structure:
The
snowflake.ymlfile contains a project definition that describes the project structure that thesnow snowparkcommands use.The
appdirectory stores the project code. You can think about it as a Python module. All functions and procedures must reside in this directory.The
requirements.txtfile contains project dependencies. Snowflake CLI supports all requirement specifiers supported bypip, such as a package name, a URL for a package, or a local path.You can add more dependencies (such as previously deployed custom packages) as
importsparameters in the function and procedure declarations in the project definition.