Skip to main content

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()

Metadata

Release files for snowpark-session 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snowpark-session 0.1.2
File Size Uploaded Provenance Actions
snowpark_session-0.1.2.tar.gz 3.2 kB Without provenance Details for snowpark_session-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for snowpark-session 0.1.2
File Interpreter ABI Platform Actions
snowpark_session-0.1.2-py3-none-any.whl Python 3 none any Details for snowpark_session-0.1.2-py3-none-any.whl

Total release size: 7.2 kB

Release files / snowpark_session-0.1.2.tar.gz

Download URL snowpark_session-0.1.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ea2224dddd5ddb1abcf8f40dde6eb279e3d0d282e27b822ad32fe14f3bc1c16b
BLAKE2b-256 checksum
How to use checksums
578292eca2fb8a1185ca0ed699f5eb417beec384e9b5fa30cc941b1bd7a770d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / snowpark_session-0.1.2-py3-none-any.whl

Download URL snowpark_session-0.1.2-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7846388ad73965a310a3f0205b27ff029cb5c355cc57ec026897708dab037a6c
BLAKE2b-256 checksum
How to use checksums
45e9c4f8f6724a000fed1f988665f21db97258fef260f86e34acb78dd94a2a97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for snowpark-session 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page