Hey Eric— I recently ran into "Click" to do this. One real life example is some personal knowledge management tools I've been working on. I've been happy with how Click automates much of the process.
Peter
On Jul 28, 2021, 2:41 PM -0400, Eric Lease Morgan <[log in to unmask]>, wrote:
> Do you know of one or more Python frameworks for launching scripts? Sort of like a menuing system, but not really.
>
> I have a whole pile o' little utility programs, and I want to integrate them into a single easy-to-use system. The system will have a root command, and the command will take any number of flagged or positional arguments. Given the command and the arguments, the system will run the underlying utility. Git sort of works this way. So does the Amazon Web Services command-line tool -- aws.
>
> I currently have a Bash shell program that does this, and ironically, I don't know its name. Since I desire to give away this yet-to-be created system, it probably behooves me to use a Python-based tool as opposed to something in Bash.
>
> Do you have any recommendations?
>
> --
> Eric Morgan
> University of Notre Dame
|