Open scolby33 opened 6 years ago
Will maybe use https://github.com/mbr/flask-appconfig
The shear number of flask-* things you add to this project is amazing.
Nope flask-appconfig is defunct
i changed my mind. Keyword arguments in the create_application functions or environment variables or bust
I'm confused
Hey how about def myfunction(kwarg1=whatever, magic_thing=whatever)
and some inspection of os.env to autoextract f'{ENVPREFIX}_KWARG1'
and f'{ENVPREFIX}_MAGIC_THING'
?
Yeah this is the idea of namespacing within envionrment variables. Click actually does this for you in their CLI
It looks like it works basically the way I wrote up there except it uses '%s_%s' % (...)
instead of f strings.
So is this done? I've decided never ever to use config files again until i find a library that basically does all of the searching for you (the same way that all of flake8, mypy, etc. are able to look in setup.cfg and also their specific files, but i don't want to write that code myself)
We wrote most of that code for pushover_complete, I think.
You should write the library.
Okay. Maybe build on this https://github.com/poudel/simple-config
There’s this new repo called easy_config I think we should use
Config files? Env variables?