Skip to main content

No project description provided

Project description

Snowpark Session Util

A simple utility for spark and mlflow session objects

Setup

Quick Install

python -m pip install snowpark_session

Build from source

Clone the repository

git clone https://github.com/Broomva/snowpark_session.git

Install the package

cd snowpark_session && make install

Build manually

After cloning, create a virtual environment

conda create -n snowpark_session python=3.8
conda activate snowpark_session
conda install snowflake-snowpark-python pandas

Install the requirements

pip install -r requirements.txt

Run the python installation

python setup.py install

Usage

The deployment requires a .env file created under local folder:

touch .env

It should have a schema like this:

snowflake_account=''
snowflake_user=''
snowflake_password=''
snowflake_user_role=''
snowflake_warehouse=''
snowflake_database=''
snowflake_schema=''

# Optional
azureml_experiment_name=''
azureml_experiment_id=''
azureml_subscription_id=''
azureml_resource_group=''
azureml_workspace_name=''
import snowpark_session as ss

# Create a Spark session
spark = ss.SnowparkSession().get_session()

# Connect to MLFLow Artifact Server
mlflow_session = ss.AzureMLFlowSession().get_session()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snowpark_session-0.1.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

snowpark_session-0.1.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file snowpark_session-0.1.2.tar.gz.

File metadata

  • Download URL: snowpark_session-0.1.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for snowpark_session-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ea2224dddd5ddb1abcf8f40dde6eb279e3d0d282e27b822ad32fe14f3bc1c16b
MD5 6f8e797be47a2fcbe3016327f0948409
BLAKE2b-256 578292eca2fb8a1185ca0ed699f5eb417beec384e9b5fa30cc941b1bd7a770d5

See more details on using hashes here.

File details

Details for the file snowpark_session-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for snowpark_session-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7846388ad73965a310a3f0205b27ff029cb5c355cc57ec026897708dab037a6c
MD5 8f535ccc0610179a5f61b5121af8cf78
BLAKE2b-256 45e9c4f8f6724a000fed1f988665f21db97258fef260f86e34acb78dd94a2a97

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page