Skip to content

Latest commit

Β 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐍 Snowflake Snowpark Python

Snowflake Python Status

A comprehensive guide to Snowpark Python, the developer framework that brings the power of Python directly to the Snowflake platform. This project covers the DataFrame API, User-Defined Functions (UDFs), and Stored Procedure deployment.


Key Features

  • DataFrame API: Familiar, pandas-like syntax for pushdown data processing.
  • UDFs: Extending Snowflake with custom Python-based logic.
  • Stored Procedures: Encapsulating complex ELT workflows in Python.
  • Server-Side Execution: Running code securely inside Snowflake's governed environment.

Project Structure

Snowflake_Snowpark_Python/
β”œβ”€β”€ README.md               # You are here
β”œβ”€β”€ Tutorial/
β”‚   └── SNOWPARK_TUTORIAL.md # Step-by-step walkthrough
β”œβ”€β”€ scripts/                # Extracted Python and SQL scripts
β”‚   β”œβ”€β”€ 01_session_connection.py
β”‚   β”œβ”€β”€ 02_active_session.py
β”‚   β”œβ”€β”€ 03_dataframe_basics.py
β”‚   β”œβ”€β”€ 04_udf_definition.py
β”‚   β”œβ”€β”€ 05_udf_sql_invocation.sql
β”‚   β”œβ”€β”€ 06_stored_procedure.py
β”‚   └── 07_sproc_call.sql
└── data/                   # Initialised as empty

Getting Started

Environment Setup: Before beginning, execute scripts/00_setup_environment.sql to provision the necessary databases, schemas, and sample data for this project.

  1. Review the Snowpark Python Guide.
  2. Setup your environment following the connection parameters in scripts/01_session_connection.py.

Author

Elliott Fairhall Data Engineering Educational Series

About

A comprehensive guide to Snowpark Python, the developer framework that brings the power of Python directly to the Snowflake platform. This project covers the DataFrame API, User-Defined Functions (UDFs), and Stored Procedure deployment.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages