Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Announce

cmd2, an extenstion of cmd that parses its argument list

 

 

Python announce RSS feed   Index | Next | Previous | View Threaded


anntzer.lee at gmail

Mar 18, 2012, 10:12 PM

Post #1 of 2 (215 views)
Permalink
cmd2, an extenstion of cmd that parses its argument list

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
--
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


anntzer.lee at gmail

Apr 26, 2012, 12:16 PM

Post #2 of 2 (180 views)
Permalink
Re: cmd2, an extenstion of cmd that parses its argument list [In reply to]

On Sunday, March 18, 2012 10:12:24 PM UTC-7, anntz...@gmail.com wrote:
> 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.
>
Due to an already existing Cmd2 on PyPI, I have renamed the project to parsedcmd, which is also a better description of what the module does.
https://github.com/anntzer/parsedcmd

> 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

--
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/

Python announce RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.