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:
-
Create the
.snowauth
folder and thesnowflake.conf
file that will store different snowflake credentials.mkdir ~/.snowauth mkfile ~/.snowauth/snowflake.conf
-
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)