repo_name stringclasses 5
values | repo_url stringclasses 5
values | repo_description stringclasses 3
values | repo_stars int64 6 15.8k | repo_forks int64 192 3.6k | repo_last_updated stringclasses 5
values | repo_created_at stringclasses 5
values | repo_size int64 513 2.13k | repo_license stringclasses 4
values | language stringclasses 2
values | text stringlengths 0 27.5k | avg_line_length float64 0 74.3 | max_line_length int64 0 652 | alphnanum_fraction float64 0 0.8 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sfguide-data-engineering-with-snowpark-python | https://github.com/Snowflake-Labs/sfguide-data-engineering-with-snowpark-python | null | 53 | 2,339 | 2023-11-18 06:33:34+00:00 | 2023-01-23 16:06:45+00:00 | 513 | Apache License 2.0 | Python | #------------------------------------------------------------------------------
# Hands-On Lab: Data Engineering with Snowpark
# Script: 07_daily_city_metrics_process_sp/app.py
# Author: Jeremiah Hansen, Caleb Baechtold
# Last Updated: 1/9/2023
#--------------------------------------------------------------... | 59.910569 | 214 | 0.578294 |
sfguide-data-engineering-with-snowpark-python | https://github.com/Snowflake-Labs/sfguide-data-engineering-with-snowpark-python | null | 53 | 2,339 | 2023-11-18 06:33:34+00:00 | 2023-01-23 16:06:45+00:00 | 513 | Apache License 2.0 | Python | from __future__ import annotations
import os
import configparser
from pathlib import Path
import toml
def get_dev_config(
environment: str = 'dev',
app_config_path: Path = Path.cwd().joinpath('app.toml'),
) -> dict:
try:
app_config = toml.load(app_config_path)
config = configparser.Config... | 31.457143 | 79 | 0.602643 |
sfguide-data-engineering-with-snowpark-python | https://github.com/Snowflake-Labs/sfguide-data-engineering-with-snowpark-python | null | 53 | 2,339 | 2023-11-18 06:33:34+00:00 | 2023-01-23 16:06:45+00:00 | 513 | Apache License 2.0 | Python | 0 | 0 | 0 | |
sfguide-data-engineering-with-snowpark-python | https://github.com/Snowflake-Labs/sfguide-data-engineering-with-snowpark-python | null | 53 | 2,339 | 2023-11-18 06:33:34+00:00 | 2023-01-23 16:06:45+00:00 | 513 | Apache License 2.0 | Python | from snowflake.snowpark import Session
import os
from typing import Optional
# Class to store a singleton connection option
class SnowflakeConnection(object):
_connection = None
@property
def connection(self) -> Optional[Session]:
return type(self)._connection
@connection.setter
def conne... | 35.917647 | 92 | 0.654128 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.