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


Groups > comp.lang.python.announce > #553

cmd2, an extenstion of cmd that parses its argument list

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <news@google.com>
X-Original-To python-announce@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.055
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'python': 0.08; 'parsing': 0.09; 'received:eu': 0.09; 'url:github': 0.09; 'argument': 0.15; "library's": 0.16; 'methods,': 0.16; 'repl': 0.16; 'shells': 0.16; 'extension': 0.17; 'help.': 0.19; 'subject:list': 0.21; 'string': 0.24; 'library.': 0.24; 'received:209.85.220': 0.25; 'module': 0.26; 'all,': 0.27; 'function': 0.27; 'facility': 0.29; 'cmd': 0.30; 'syntax,': 0.30; 'rest': 0.32; 'list': 0.32; 'header:User- Agent:1': 0.33; 'header:X-Complaints-To:1': 0.34; 'lee': 0.34; 'loop': 0.34; 'header:Received:8': 0.34; 'parse': 0.34; 'however,': 0.35; 'passed': 0.37; 'received:google.com': 0.37; 'using': 0.37; 'either': 0.37; 'received:209.85': 0.38; 'allows': 0.38; 'announce': 0.38; 'received:209': 0.39; 'received:prod.google.com': 0.40; 'release': 0.40; 'received:10.192': 0.40; 'custom': 0.61; 'simple': 0.61; 'dear': 0.63; 'from:no real name:2**0': 0.64; 'taking': 0.66; 'here:': 0.67; 'care': 0.71; 'to:addr:moderators.isc.org': 0.73; 'ad-hoc': 0.84; 'subject:its': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-authentication-warning:to:path:from:newsgroups:subject:date :organization:lines:message-id:nntp-posting-host:mime-version :content-type:x-trace:x-complaints-to:nntp-posting-date :complaints-to:injection-info:user-agent; bh=k1NHeemZAgKWVZq303pQTNYXeQ5fmFQ3Rr5l4UZVSvg=; b=McqLTmj6fuM4ODuUeZ6j136rgTW6LINiwBB7OERA667X0BpWfNqKYV+shZPzuvxZP5 ln3td7YCv0+8f1iAXgH+zGxy6lhaVjUetKiUm0E15KqZlIX2IPNwhEYVeVZFRvKxaRSR p8Q0tJlrcFVuFGSsakExGOLrPym64q5yZtZsfddnCGXj+zgBgQKd6WH/qkFxxTEpyy2D 0z0xfkHiWSbuOp2ZSsNGiPHvlPFn+/0SuZARLzXUCXZ+bK+hOqPB0FIGlJIiPCUanviJ oi+jimzy52ZC6s3UQhdpxmgcRoXgu0uMc3B30NUUi7dC9/L0VHL/Pw8cTYPaKyYqbSHP wFIQ==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-authentication-warning:to:path:from:newsgroups:subject:date :organization:lines:message-id:nntp-posting-host:mime-version :content-type:x-trace:x-complaints-to:nntp-posting-date :complaints-to:injection-info:user-agent:x-gm-message-state; bh=k1NHeemZAgKWVZq303pQTNYXeQ5fmFQ3Rr5l4UZVSvg=; b=UzLUD50a8YJM+OhL36vrjP93FQE16r6rJMywyqobempAZPuDI/pRJRVPo80sZ8FUWS op/nY7xcSpoV6d36qIasK7hkE9q3sSxr4Db/XDVWLAAFPEEdd/qY0JVkc4aO0YSfypU+ 0n5Chq1pGRCIA+JDhTblGBL/266QjWit5L/RBoSOyqghIVPoNv33MxzzOuSn57nC3tFV 5FCrgQYjCWGe9V+OgxEcuojTKO8QbdntFHNCPagxPi5I604PU5H/1yrXpAUQcgHuCZaE uTgDjYWXje5FfJATfEe5oglOqcAxxDQRbmseqwfew3aeuxm/XB7i4AsWZMMxDI1JZ9h8 KUrw==
X-Authentication-Warning yws13.prod.google.com: news set sender to news@google.com using -f
To comp-lang-python-announce@moderators.isc.org
From anntzer.lee@gmail.com
Newsgroups comp.lang.python.announce
Subject cmd2, an extenstion of cmd that parses its argument list
Date Sun, 18 Mar 2012 22:12:24 -0700 (PDT)
Organization http://groups.google.com
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=69.110.9.212; posting-account=y98zyAoAAACOv5kgYaXLF7qiqqTqwM2l
User-Agent G2/1.0
X-Gm-Message-State ALoCoQnA1/gokAm96xvrAZ06Yb+oc2wPL7ihp0u6L3O7jE4WgNRXIbRdk62ZZC4KubGDbDzVSQsfsdkvvySm68iLfoOFvGeLRqK8DuK1qD6hpT/4EAOOQHV105EN+kkSPjcpyoUo4nhYqCyb7L3HsdrDCSHbpndfntMDFBRRPgpQt71b7hgJBJ0=
X-Mailman-Approved-At Mon, 19 Mar 2012 14:23:23 +0100
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To python-list@python.org
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
Approved python-announce-list@python.org
Message-ID <mailman.806.1332163404.3037.python-announce-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1332163404 news.xs4all.nl 6854 [2001:888:2000:d::a6]:33423
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python.announce:553

Show key headers only | View raw


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

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


Thread

cmd2, an extenstion of cmd that parses its argument list anntzer.lee@gmail.com - 2012-03-18 22:12 -0700

csiph-web