Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36055 > unrolled thread
| Started by | "bob.blanchett" <bob.blanchett@gmail.com> |
|---|---|
| First post | 2013-01-03 04:17 -0800 |
| Last post | 2013-01-03 12:15 -0600 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
| From | "bob.blanchett" <bob.blanchett@gmail.com> |
|---|---|
| Date | 2013-01-03 04:17 -0800 |
| Subject | Re: Creating interactive command-line Python app? |
| Message-ID | <198fde16-eb65-4425-9a81-147cdbd7fb07@googlegroups.com> |
This is exactly what you want: https://cliff.readthedocs.org/en/latest/ Bob/Julius Flywheel On Wednesday, December 21, 2005 11:34:38 PM UTC+11, planetthoughtful wrote: > Hello All, > > 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)? > > I've tried Googling, but the results are overwhelmingly about > interactive Python environments (IPython etc etc), instead of how to > achieve prompting at the command line when running your own Python app. > > Any help appreciated! > > Much warmth, > > planetthoughtful
[toc] | [next] | [standalone]
| From | Tim Chase <python.list@tim.thechases.com> |
|---|---|
| Date | 2013-01-03 08:24 -0600 |
| Message-ID | <mailman.40.1357222992.2939.python-list@python.org> |
| In reply to | #36055 |
(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
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <d@davea.name> |
|---|---|
| Date | 2013-01-03 09:41 -0500 |
| Message-ID | <mailman.42.1357224115.2939.python-list@python.org> |
| In reply to | #36055 |
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
[toc] | [prev] | [next] | [standalone]
| From | Tim Chase <python.list@tim.thechases.com> |
|---|---|
| Date | 2013-01-03 12:15 -0600 |
| Message-ID | <mailman.53.1357236839.2939.python-list@python.org> |
| In reply to | #36055 |
On 01/03/13 08:41, Dave Angel wrote: > 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. Ah. 2005 would explain why my newsreader has purged them as ancient history :) Thanks for the clarification. -tkc
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web