Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36064
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feed.xsnews.nl!border-2.ams.xsnews.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <d@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'python,': 0.02; 'url:pypi': 0.03; 'subject:Python': 0.05; 'newbie': 0.05; 'python': 0.09; 'cmd': 0.09; 'command-line': 0.09; 'subject:command': 0.09; 'thread': 0.11; 'assume': 0.11; 'library': 0.15; '-tkc': 0.16; 'bonus.': 0.16; 'cliff': 0.16; 'wrote:': 0.17; '(in': 0.18; 'tim': 0.18; 'input': 0.18; 'windows': 0.19; 'app': 0.19; 'module': 0.19; 'posted': 0.22; "i've": 0.23; 'command': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'wondering': 0.26; '[1]': 0.27; 'am,': 0.27; 'run': 0.28; 'post': 0.28; 'chase': 0.29; 'readline': 0.29; "i'm": 0.29; 'url:python': 0.32; 'suggestion': 0.32; 'docs': 0.33; 'to:addr:python-list': 0.33; 'needed': 0.35; 'subject:?': 0.35; 'wanted': 0.36; 'url:org': 0.36; '2005': 0.36; 'url:library': 0.36; "didn't": 0.36; 'should': 0.36; 'possible': 0.37; 'does': 0.37; 'two': 0.37; 'subject:: ': 0.38; 'supports': 0.38; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'subject:-': 0.40; 'most': 0.61; "you've": 0.61; 'further': 0.61; 'mentioned': 0.63; 'more': 0.63; 'within': 0.64; 'replying': 0.64; 'past.': 0.65; 'url:6': 0.65; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'sounds': 0.71; 'reply-to:no real name:2**0': 0.72; 'interesting,': 0.84; 'original.': 0.84; 'recent,': 0.84; 'bob': 0.91 |
| Date | Thu, 03 Jan 2013 09:41:31 -0500 |
| From | Dave Angel <d@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Creating interactive command-line Python app? |
| References | <1135168477.969110.290850@f14g2000cwb.googlegroups.com> <198fde16-eb65-4425-9a81-147cdbd7fb07@googlegroups.com> <50E59494.7030404@tim.thechases.com> |
| In-Reply-To | <50E59494.7030404@tim.thechases.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:7xDdal1V/TMYg5B49MAD7Fxt1cyG/Yuzkih422KLXk3 bMYpSn6uBbKIOECFW9jsgmfxZ1qUfycHbYGXPYQzB4Onl3ulmd sU55dhjsIVeDMjMrvQqtWTQkvQA88/+Hc59hqKnjf/lLRKd2Lf c4AZTWZEjHzpPd/ACaLxJ9SrDkDstIMNeYkUxIYEYQC464x8kK Nu7BZB+G89K+tdniCH1yXVrq2LyRMw4z4xjb2ceuq6WtexkAEk zIpbfWTK4+2HBL1/IKphEdCunmnivFHZwXIoP33DuXoNUL9SDZ kk5T+909Zdy/VFhFzWf3+LyXsm9K1Bw6TBk7iIrlffFCThDcQ= = |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | d@davea.name |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.42.1357224115.2939.python-list@python.org> (permalink) |
| Lines | 38 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1357224115 news.xs4all.nl 6853 [2001:888:2000:d::a6]:43810 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:36064 |
Show key headers only | View raw
On 01/03/2013 09:24 AM, Tim Chase wrote:
> (original post from planetthoughtful didn't seem to arrive here, so
> replying to Bob's reply)
>
>> Newbie to Python, and I'm wondering if it's possible to create a
>> Python console app that prompts for further input on the command
>> line when run (in Windows XP, if that's important)?
>
> While Bob's suggestion of "cliff" sounds interesting, Python also
> offers the "cmd" module[1] in the standard library which does most of
> what I've needed in the past. If you've got the readline library
> available, it also supports autocompletion and command-line history
> which is a nice bonus.
>
> -tkc
>
> [1]
> http://docs.python.org/2/library/cmd.html # py2.x
> http://docs.python.org/3/library/cmd.html # py3.x
> Docs should be about the same
The two replies in 2005 mentioned both raw_input and the cmd module (in
case that's what he was implying). They were posted within 90 minutes
of the original.
http://python.6.n6.nabble.com/Creating-interactive-command-line-Python-app-td910404.html
I assume that cliff is much more recent, and Bob wanted to update the
thread after 7 years.
http://pypi.python.org/pypi/cliff
--
DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Creating interactive command-line Python app? "bob.blanchett" <bob.blanchett@gmail.com> - 2013-01-03 04:17 -0800 Re: Creating interactive command-line Python app? Tim Chase <python.list@tim.thechases.com> - 2013-01-03 08:24 -0600 Re: Creating interactive command-line Python app? Dave Angel <d@davea.name> - 2013-01-03 09:41 -0500 Re: Creating interactive command-line Python app? Tim Chase <python.list@tim.thechases.com> - 2013-01-03 12:15 -0600
csiph-web