-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #107 Instead of having to export/set the variables in the user's shell, it'd be handy to support a `.env` file where the prerequisite variables could be set. We still support setting the variables directly in the shell / Python code. This PR adds the `python-dotenv` package to support .env files, and clarifies the instructions in the README. ## Testing Set the environment variables in a `.env` file and verify that they are reflected properly in the app.
- Loading branch information
1 parent
533905f
commit 584654a
Showing
6 changed files
with
103 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Example config for username/password auth | ||
SNOWFLAKE_ROLE="<my_role>" | ||
SNOWFLAKE_WAREHOUSE="<my_warehouse>" | ||
SNOWFLAKE_USER="<my_user>" | ||
SNOWFLAKE_PASSWORD="<my_pw>" | ||
SNOWFLAKE_ACCOUNT_LOCATOR="<my_snowflake_account>" | ||
SNOWFLAKE_HOST="<my_snowflake_host>" | ||
|
||
|
||
# Example config for externalbrowser auth | ||
SNOWFLAKE_ROLE="<my_role>" | ||
SNOWFLAKE_WAREHOUSE="<my_warehouse>" | ||
SNOWFLAKE_USER="<my_user>" | ||
SNOWFLAKE_PASSWORD="<my_pw>" | ||
SNOWFLAKE_ACCOUNT_LOCATOR="<my_snowflake_account>" | ||
SNOWFLAKE_HOST="<my_snowflake_host>" | ||
SNOWFLAKE_AUTHENTICATOR="externalbrowser" | ||
|
||
|
||
# Example config for username/password auth using MFA | ||
SNOWFLAKE_ROLE="<my_role>" | ||
SNOWFLAKE_WAREHOUSE="<my_warehouse>" | ||
SNOWFLAKE_USER="<my_user>" | ||
SNOWFLAKE_PASSWORD="<my_pw>" | ||
SNOWFLAKE_ACCOUNT_LOCATOR="<my_snowflake_account>" | ||
SNOWFLAKE_HOST="<my_snowflake_host>" | ||
SNOWFLAKE_AUTHENTICATOR="username_password_mfa" | ||
SNOWFLAKE_MFA_PASSCODE="<my_mfa_passcode>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
numpy==1.24.4 | ||
python-dotenv==1.0.1 | ||
urllib3==1.26.19 | ||
requests==2.32.3 | ||
sqlglot==23.17.0 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters