Allow configuring env letter case rules for settings parser #277
Issue derived from #275
The current workaround is to use the settings config class to set up aliases, e.g.:
class S(pydantic.BaseSettings): test:str class Config: fields = dict(test=dict(alias="test"))
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:
class S(pydantic.BaseSettings): class Config: letter_case = "lower" # or: "upper" | "any" test:str
About this concern raised for case insensitive option #275 (comment).
The text was updated successfully, but these errors were encountered:
* 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