5 ms·
Click has one feature which is huge for me: parsing env variables following some pattern eg MYAPP_FOO. For lazy import - You can do it with click, too, just pu
by kortex 6y ago
Click has one feature which is huge for me: parsing env variables following some pattern eg MYAPP_FOO.
For lazy import - You can do it with click, too, just put your imports in your entrypoint functions.
Click isn't minimalistic though. Nor is poetry or pyenv. Seems to be the main complaints about the article.
- jabwork 6y agoConfigargparse is a great drop in replacement for argparse that I use to handle bridging env vars with cli flags https://pypi.org/project/ConfigArgParse/ https://pypi.org/project/ConfigArgParse/
- kortex 6y agoYES I need this in my life! Tried searching for such a thing but I guess had the wrong keywords.