Skip to content

Feat: Add support for dot env file to load variables from#4840

Merged
themisvaltinos merged 3 commits intomainfrom
themis/dotenv
Jun 30, 2025
Merged

Feat: Add support for dot env file to load variables from#4840
themisvaltinos merged 3 commits intomainfrom
themis/dotenv

Conversation

@themisvaltinos
Copy link
Copy Markdown
Collaborator

This update allows environment variables being loaded from a .env file in the project directory, fixes: #4405

Example .env file:

SNOWFLAKE_PW=my_secret_password
S3_BUCKET=s3://my-data-bucket/warehouse

# Override SQLMesh config values
SQLMESH__DEFAULT_GATEWAY=production
SQLMESH__MODEL_DEFAULTS__DIALECT=snowflake

Comment thread sqlmesh/core/config/loader.py
Comment thread sqlmesh/core/config/loader.py Outdated
Comment thread sqlmesh/magics.py
@themisvaltinos themisvaltinos merged commit eb8a5b7 into main Jun 30, 2025
26 checks passed
@themisvaltinos themisvaltinos deleted the themis/dotenv branch June 30, 2025 09:51
Comment thread pyproject.toml
"PyAthena[Pandas]",
"PyGithub>=2.6.0",
"pyperf",
"python-dotenv",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@themisvaltinos we need to move this to dependencies– this isn't a dev dependency, because the .env functionality requires that this package is installed on the user's system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.env file to load in environment variables easily for gateway configs

4 participants