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 details)
Built Distribution
File details
Details for the file snowauth-1.0.2.tar.gz
.
File metadata
- Download URL: snowauth-1.0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5686e2603d7958cf3be0b7c730662e3ca94545da2af59177a0192cc771860454 |
|
MD5 | d1e8b68e130f5e72929c5f0007da12b6 |
|
BLAKE2b-256 | 374b72cc8708b2084aa34c94c0717cd1d472f112f8e5530c4f78befb395d627b |
File details
Details for the file snowauth-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: snowauth-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 440cf10d6895fc5164f5f85d5ca7a73ebf76e25afc9a85be63f975d35eca0fb0 |
|
MD5 | f45dc6cbc2fb0faaf70673a4109ff918 |
|
BLAKE2b-256 | e0c15b1dc1d0d1dc994c6cd33e07dc838e8e5a475d83b561ee9b53a732c2334c |