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


Groups > comp.lang.python > #21877 > unrolled thread

ANN: cmd2, an extenstion of cmd that parses its argument line

Started byanntzer.lee@gmail.com
First post2012-03-18 22:11 -0700
Last post2012-04-26 12:15 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  ANN: cmd2, an extenstion of cmd that parses its argument line anntzer.lee@gmail.com - 2012-03-18 22:11 -0700
    Re: ANN: cmd2, an extenstion of cmd that parses its argument line xDog Walker <thudfoo@gmail.com> - 2012-03-19 06:14 -0700
      Re: ANN: cmd2, an extenstion of cmd that parses its argument line anntzer.lee@gmail.com - 2012-04-26 12:15 -0700

#21877 — ANN: cmd2, an extenstion of cmd that parses its argument line

Fromanntzer.lee@gmail.com
Date2012-03-18 22:11 -0700
SubjectANN: cmd2, an extenstion of cmd that parses its argument line
Message-ID<20285780.118.1332133873462.JavaMail.geo-discussion-forums@pbcwe9>
Dear all,

I would like to announce the first public release of cmd2, an extension of the standard library's cmd with argument parsing, here: https://github.com/anntzer/cmd2.

Cmd2 is an extension built around the excellent cmd module of the standard
library.  Cmd allows one to build simple custom shells using ``do_*`` methods,
taking care in particular of the REPL loop and the interactive help.  However,
no facility is given for parsing the argument line (do_* methods are passed the
rest of the line as a single string argument).

With Cmd2, ``do_*`` methods are type-annotated, either using Python 3's
function annotation syntax, or with an ad-hoc ``annotate`` decorator, allowing
the dispatcher to parse the argument list for them.

Antony Lee

[toc] | [next] | [standalone]


#21895

FromxDog Walker <thudfoo@gmail.com>
Date2012-03-19 06:14 -0700
Message-ID<mailman.805.1332162986.3037.python-list@python.org>
In reply to#21877
On Sunday 2012 March 18 22:11, anntzer.lee@gmail.com wrote:
> I would like to announce the first public release of cmd2, an extension of
> the standard library's cmd with argument parsing, here:
> https://github.com/anntzer/cmd2.

There already is a cmd2 package at PyPI and has been for a long time.

http://packages.python.org/cmd2/

-- 
I have seen the future and I am not in it.

[toc] | [prev] | [next] | [standalone]


#23172

Fromanntzer.lee@gmail.com
Date2012-04-26 12:15 -0700
Message-ID<10634244.690.1335467729368.JavaMail.geo-discussion-forums@pbsp7>
In reply to#21895
I have renamed the project to parsedcmd, which is also a better description of what the module does.
https://github.com/anntzer/parsedcmd

On Monday, March 19, 2012 6:14:44 AM UTC-7, xDog Walker wrote:
> On Sunday 2012 March 18 22:11, anntzer.lee@gmail.com wrote:
> > I would like to announce the first public release of cmd2, an extension of
> > the standard library's cmd with argument parsing, here:
> > https://github.com/anntzer/cmd2.
> 
> There already is a cmd2 package at PyPI and has been for a long time.
> 
> http://packages.python.org/cmd2/
> 
> -- 
> I have seen the future and I am not in it.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web