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

Support binding from/to environment variables #33

Open
mthuurne opened this issue Jul 21, 2023 · 0 comments
Open

Support binding from/to environment variables #33

mthuurne opened this issue Jul 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mthuurne
Copy link
Member

For simple configurations, environment variables can be an easy and flexible mechanism. Therefore it would be useful to support binding from/to environment variables.

More complex configurations, in particular nested dataclasses, don't map to environment variables very well. In fact, that was one of the motivations for creating this library in the first place, as TOML can deal with complex configurations. But that shouldn't prevent us from supporting simple configurations.

I think the implementation shouldn't be hardcoded for environment variables and instead operate with any Mapping[str, str] data structure, with either a convenience method or a default that uses the environment.

@mthuurne mthuurne added the enhancement New feature or request label Jul 21, 2023
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
None yet
Development

No branches or pull requests

1 participant