Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78948

Re: CLI framework using python

From Gelonida N <gelonida@gmail.com>
Subject Re: CLI framework using python
Date 2014-10-10 13:58 +0200
References <274771d2-4a11-40fe-bc31-ccfaa7d32690@googlegroups.com> <CACDG_KeytO8LV0yfGQ+nx+tRTTLd=64CwCwdsYnE=pdMsf0Z9w@mail.gmail.com> <mailman.14720.1412870470.18130.python-list@python.org> <90907ef5-275d-4f24-bffb-bb97e7c3f051@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.14751.1412942303.18130.python-list@python.org> (permalink)

Show all headers | View raw


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
>
>> https://pypi.python.org/pypi/sh
>
>> https://pypi.python.org/pypi/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.

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

CLI framework using python vijnaana@gmail.com - 2014-10-09 05:20 -0700
  Re: CLI framework using python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-10-09 09:07 -0400
  Re: CLI framework using python Unix SA <d.joshi84@gmail.com> - 2014-10-09 20:55 +0530
  Re: CLI framework using python Gelonida N <gelonida@gmail.com> - 2014-10-09 18:00 +0200
    Re: CLI framework using python Rustom Mody <rustompmody@gmail.com> - 2014-10-10 01:43 -0700
      Re: CLI framework using python Gelonida N <gelonida@gmail.com> - 2014-10-10 13:58 +0200
  Re: CLI framework using python Python UL <python@rgbaz.eu> - 2014-10-09 18:08 +0200
  Re: CLI framework using python vijnaana bhairava <vijnaana@gmail.com> - 2014-10-14 06:33 -0700
    Re: CLI framework using python Chris Angelico <rosuav@gmail.com> - 2014-10-15 00:43 +1100
    Re: CLI framework using python "Naoki INADA" <songofacandy@gmail.com> - 2014-10-14 07:15 -0700
      Re: CLI framework using python vijnaana bhairava <vijnaana@gmail.com> - 2014-10-15 09:05 -0700

csiph-web