You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add support for case insensitive env names
Closes#277
* feedback: just alias os.environ
* doc: update history
* doc: mention case_insensitive option
* refactor: feedback if-else expression assignment
* fix: formatting
* chore: encode black configuration in file to support IDEs
* docs: fix example
* feedback: no suppport for IDEs in this PR
* feedback: style
alexdrydew
pushed a commit
to alexdrydew/pydantic
that referenced
this issue
Dec 23, 2023
Issue derived from #275
Currently
BaseSettings
defaults to looking for env variables in uppercase. This issue is a feature proposal to make this behaviour configurable.The current workaround is to use the settings config class to set up aliases, e.g.:
However this is verbose and onerous to do (for the developer), if there are many such env vars.
It would be nice if the developer could do something like:
About this concern raised for case insensitive option #275 (comment).
env2
(but probably the entire settings result would just be cached by the app)The text was updated successfully, but these errors were encountered: