bash/shell to python

Chris Rebert clp2 at rebertia.com
Thu May 17 05:08:26 EDT 2012


On Wed, May 16, 2012 at 7:16 PM, Rita <rmorgan466 at gmail.com> wrote:
> Hello,
>
> I currently build a lot of interfaces/wrappers to other applications using
> bash/shell. One short coming for it is it lacks a good method to handle
> arguments so I switched to python a while ago to use 'argparse' module. Its
> a great complement to subprocess module. I was wondering if there is a
> generic framework people follow to build python scripts which are replacing
> shell scripts? Is there a guide or a template to follow?

Not really.

The new Plumbum library looks pretty awesome though:
http://plumbum.readthedocs.org/en/latest/index.html

There are also a few 3rd-party wrapper libraries for the `subprocess`
module available to make using it more convenient (e.g. `envoy`).

Cheers,
Chris



More information about the Python-list mailing list