CLI framework using python

Gelonida N gelonida at
Fri Oct 10 13:58:11 CEST 2014

On 10/10/2014 10:43 AM, Rustom Mody wrote:
> On Thursday, October 9, 2014 9:31:39 PM UTC+5:30, gelonida wrote:
>> For calling commands in a slightly nicer way than os.system /
>> sybprocess.Popen you might look at sh or plumbum
> Both of these look quite nice!
> [Im looking at them from a couple of angles
>   1. Using python as a scripting language
>   2. Notion of DSL
> ]
> Can you tell me in short whats the difference??
Not really, both are quite new to me as well.

On a first glanced I prefered sh

However: plumbum works also on Windows systems.

As I have to write some code for Windows, some code for Linux and some 
code for both platforms I think plumbum might be nicer as I can stick to 
one syntax.

So far I used both of them just in very tiny scripts.

Most of my code still uses subprocess.Popen or my own clumsy wrappers 
around it.

More information about the Python-list mailing list