Re: Creating interactive command-line Python app?

2014-12-18 Thread Anssi Saari
rfreundlic...@colonial.net writes:

 um, what if I want to USE a command line for python WITHOUT downloading or 
 installing it

Then click on the little _ icon on the web site and you have a python
prompt in your browser.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Creating interactive command-line Python app?

2014-12-18 Thread sohcahtoa82
On Saturday, December 13, 2014 6:50:50 AM UTC-8, Steven D'Aprano wrote:
 rfreundlic...@colonial.net wrote:
 
  um, what if I want to USE a command line for python WITHOUT downloading or
  installing it
 
 Who are you talking to? What is the context?
 
 Like all software, you can't use Python apps without all their dependencies
 being installed. If you use the Linux operating system, it will have Python
 already installed. Otherwise, you will have to install it.
 
 If you can't install it, or don't want to, you can't use Python.
 
 
 -- 
 Steven

He replied to a post from nearly two years ago, but deleted all context.

And even that post was a bump reviving a post from 2005.

See the whole thread at 
https://groups.google.com/d/msg/comp.lang.python/sAiJ8bvBBKI
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Creating interactive command-line Python app?

2014-12-13 Thread rfreundlich21
um, what if I want to USE a command line for python WITHOUT downloading or 
installing it

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Creating interactive command-line Python app?

2014-12-13 Thread Steven D'Aprano
rfreundlic...@colonial.net wrote:

 um, what if I want to USE a command line for python WITHOUT downloading or
 installing it

Who are you talking to? What is the context?

Like all software, you can't use Python apps without all their dependencies
being installed. If you use the Linux operating system, it will have Python
already installed. Otherwise, you will have to install it.

If you can't install it, or don't want to, you can't use Python.


-- 
Steven

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Creating interactive command-line Python app?

2014-12-13 Thread Akira Li
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes:

 rfreundlic...@colonial.net wrote:

 um, what if I want to USE a command line for python WITHOUT downloading or
 installing it

 Who are you talking to? What is the context?

 Like all software, you can't use Python apps without all their dependencies
 being installed. If you use the Linux operating system, it will have Python
 already installed. Otherwise, you will have to install it.

 If you can't install it, or don't want to, you can't use Python.

cx_Freeze, PyInstaller, py2exe, etc allow to create a standalone
distribution i.e., you could ship your executable with a bundled Python
interpreter.


--
Akira

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Creating interactive command-line Python app?

2014-12-13 Thread Steven D'Aprano
Akira Li wrote:

 Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes:
 
 rfreundlic...@colonial.net wrote:

 um, what if I want to USE a command line for python WITHOUT downloading
 or installing it

 Who are you talking to? What is the context?

 Like all software, you can't use Python apps without all their
 dependencies being installed. If you use the Linux operating system, it
 will have Python already installed. Otherwise, you will have to install
 it.

 If you can't install it, or don't want to, you can't use Python.
 
 cx_Freeze, PyInstaller, py2exe, etc allow to create a standalone
 distribution i.e., you could ship your executable with a bundled Python
 interpreter.


You still have to download and install the application.

Sounds to me like the OP wants to use the Python interactive interpreter
without installing Python.


-- 
Steven

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Creating interactive command-line Python app?

2013-01-03 Thread bob.blanchett
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
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Creating interactive command-line Python app?

2013-01-03 Thread Tim Chase
(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
--
http://mail.python.org/mailman/listinfo/python-list


Re: Creating interactive command-line Python app?

2013-01-03 Thread Dave Angel
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

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


Re: Creating interactive command-line Python app?

2013-01-03 Thread Tim Chase

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





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


Re: Creating interactive command-line Python app?

2005-12-21 Thread Steve Holden
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
 
Yes. Look at the raw_input() function:

   result = raw_input(What can I do for you? )
What can I do for you? Something
   result
'Something'
  

regards
  Steve
-- 
Steve Holden   +44 150 684 7255  +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006  www.python.org/pycon/

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


Re: Creating interactive command-line Python app?

2005-12-21 Thread keirr
You may also find the cmd module useful, see:
http://docs.python.org/lib/module-cmd.html

Cheers,

 Keir.

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