Auto import CLI

My motivation is not that I want to or would use Python as a command line tool. The only modules I generally use are -m pip, -m venv, -m ensure-pip.

(I work in a 99.5% *nix environment and use GNU utliities, bash, and bash scripts for simple tasks. I have a startpy bash script that spits out an argparse template with a logger. I use that for Python one-trick pony scripts where I want to type Python’s richer than bash environment.)

We just seem to get repeated ideas / requests for command line functionality and we’ve limited support for it. For example, random added some switches in 3.13 following last year’s discussion., but you can do things like
random.randrange(5,10)

It just seems incoherent.

3 Likes