Skip to main content

A package for the simple local management of snowpark for python connections.

Project description

Snowauth.

A package for the simple local management of snowpark for python connections.

Documentation

Documentation can be found here: Wiki

Example

import snowauth

session = snowauth.connect('example_connection')

Setup

pip install snowauth

After installing snowauth, set up your snowflake credentials:

  1. Create the .snowauth folder and the snowflake.conf file that will store different snowflake credentials.

    mkdir ~/.snowauth
    
    mkfile ~/.snowauth/snowflake.conf
    
  2. Add your snowflake credentials.

    Example:

    [example_connection]
    account = "ACCOUNT_NAME"
    user = "USER"
    password = "PASSWORD"
    role = "ACCOUNTADMIN"
    warehouse = "EXAMPLE_WH"
    

Then, to create a snowpark session in 1 line.

import snowauth

session = snowauth.connect('example_connection')

Output:

<snowflake.snowpark.session.Session: account=...>

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

snowauth-1.0.2.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

snowauth-1.0.2-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

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