Context:
I am making a command line tool suite that will be launched much like git and all of it's tools. Commands will be run like meke toolname --args
Based on "Why Lazy Import is not default in Python?" it sounds my case is one of the few useful places for lazy importing. I would like to parse the command line to get which tool the user would like to run, then import
that tool and pass along the remaining arguments to it's main function.
Question: Is this a good idea? Are there reasons I should import everything up front instead? Or perhaps there is a better way to structure the whole suite entry point?
I am pretty sure lazy imports will be better here. I figure a sanity check with you smart folks was a good way to prevent unforeseen complications or bad design practices. Thanks.