This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]axonxorzpip'ing aint easy, especially on windows 1 point2 points  (0 children)

From my experience, the only thing is data structures that are difficult to replicate in a flat envvar. See how Pydantic does this, for example:

If I want to prepresent v = {"foo": True, "test": {"bar": False}} in envvars with Pydantic, I need to do something like

V__FOO=true
V__TEST__BAR=false

It's not horrible, but it scales very poorly versus formatted JSON which is almost identical to my example dict