goodconf icon indicating copy to clipboard operation
goodconf copied to clipboard

Allow the initialization of values

Open lyz-code opened this issue 3 years ago • 0 comments

Hi, first thanks for your awesome project :)

To build the test cases, I want to create a GoodConf instance with some values that are different from the default, for example the DATABASE_URL attribute. It will be nice that we could do something like:

AppConfig(DATABASE_URL='fake://address')

I know BaseSettings from pydantic supports it, so maybe we can call to super().__init__ in the GoodConf`` init`. What do you think?

lyz-code avatar Dec 14 '21 15:12 lyz-code