snowdev: A DevOps toolkit for streamlined Snowflake deployments via Snowpark
SnowDev is a command-line utility designed for deploying various components related to Snowflake such as UDFs, stored procedures, and Streamlit applications using Snowpark. This tool streamlines tasks like initializing directories, local testing, uploading, and auto create components code using AI.
SnowDev currently supports the following components:
pyenv install 3.10.0
pyenv local 3.10.0
pip install snowdev or poetry add snowdev
snowdev init
snowdev <command> [options]
init
snowdev init
test
snowdev test --udf predict_sentiment
deploy
snowdev deploy --udf predict_sentiment
upload
snowdev upload --upload <upload_item>
add
snowdev add --package <package_name>
new
snowdev new --sproc "test_script"
ai
snowdev ai --embed
to generate embeddings.snowdev ai --streamlit "Want to see a bar chart on the order table"
--udf <udf_name>
: Name or identifier for the UDF you want to deploy.--sproc <sproc_name>
: Name or identifier for the Stored Procedure you want to deploy.--streamlit <streamlit_name>
: Name or identifier for the Streamlit application you want to deploy. (This is still in PrPr)--task <task_name>
: Name of the snowflake task you want to deploy.--upload <upload_item>
: Specifies what to upload. Currently supported options: static
.--package <package_name>
: Specifies the name of the package to zip and upload to the static folder.--embed
: Used with the ai
command to run embeddings.>=3.10.0, <3.11.0
"snowflake-snowpark-python" = { version = "1.5.1", extras = ["pandas"] }
ai
command, when specifying a component type (using --udf, --sproc, or --streamlit), ensure that the respective name or identifier is provided.add
command, the user will be prompted to decide if they want to upload the zip package to stage.Feel free to contribute to SnowDev by submitting pull requests or opening issues on the project's GitHub repository.