envclasses
envclasses copied to clipboard
Create an instance from env vars
Currently load_env function takes an instance of dataclass.
foo = Foo()
load_env(foo, ...)
This feature extends load_env to accept a class as the first argument and create an instance from env vars
foo = load_env(Foo, ...)
How about foo = Foo.from_env(...) ?
Hi @hit9
Sounds good!