mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
a0aa9e78cd
* 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
9 lines
146 B
Python
9 lines
146 B
Python
from pydantic import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
redis_host = 'localhost'
|
|
|
|
class Config:
|
|
case_insensitive = True
|