Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable getting envvars from .env file #748

Open
mfisher87 opened this issue Jul 6, 2024 · 0 comments
Open

Enable getting envvars from .env file #748

mfisher87 opened this issue Jul 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mfisher87
Copy link
Member

Currently we use os.environ to access the envvars directly, which doesn't care about a .env file. If we use either dotenv library or pydantic-settings (my personal preference!) we can automatically load envvars from a .env file. pydantic-settings offers additional encapsulation of valdation and derived values.

@mfisher87 mfisher87 added the enhancement New feature or request label Jul 6, 2024
@mfisher87 mfisher87 changed the title Enable getting credentials from .env file Enable getting envvars from .env file Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant