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


Groups > comp.lang.python > #78378 > unrolled thread

PyCli : Need some reference to good books or tutorials on pycli

Started byvijnaana@gmail.com
First post2014-09-26 05:54 -0700
Last post2014-09-26 08:45 -0600
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  PyCli : Need some reference to good books or tutorials on pycli vijnaana@gmail.com - 2014-09-26 05:54 -0700
    Re: PyCli : Need some reference to good books or tutorials on pycli Michael Torrie <torriem@gmail.com> - 2014-09-26 08:58 -0600
    Re: PyCli : Need some reference to good books or tutorials on pycli Michael Torrie <torriem@gmail.com> - 2014-09-26 08:45 -0600

#78378 — PyCli : Need some reference to good books or tutorials on pycli

Fromvijnaana@gmail.com
Date2014-09-26 05:54 -0700
SubjectPyCli : Need some reference to good books or tutorials on pycli
Message-ID<48e1bd9f-a2c6-4c97-a971-0653e44a29c0@googlegroups.com>
Hi Folks,

I need to develop a CLI (PyCli or similar)on Linux.
To be more specific to develop Quagga(open source routing software) like
commands using python instead of C.

Need some good reference material for the same.

P.S google didn't help

Thank You!
Vij

[toc] | [next] | [standalone]


#78380

FromMichael Torrie <torriem@gmail.com>
Date2014-09-26 08:58 -0600
Message-ID<mailman.14395.1411743533.18130.python-list@python.org>
In reply to#78378
On 09/26/2014 06:54 AM, vijnaana@gmail.com wrote:
> Hi Folks,
> 
> I need to develop a CLI (PyCli or similar)on Linux.
> To be more specific to develop Quagga(open source routing software) like
> commands using python instead of C.
> 
> Need some good reference material for the same.
> 
> P.S google didn't help

Wait, are you asking about making a command-line interface in Python?
If so, then there are a number of aspects you can google for:
- command line argument parsing.  See python docs on argparse
- A read/eval print loop using custom keywords and syntax, if you want
your program to be interactive.
   - you'll need to use readline to handle line editing
   - something to parse line input.  PyParsing perhaps.  Or some other
lexical parser, or manually do the parsing you need to do with .split()
or regular expressions.
   - possibly curses for doing screen output, though print() is probably
sufficient.

Except for pyparsing everything is in the standard library.

[toc] | [prev] | [next] | [standalone]


#78381

FromMichael Torrie <torriem@gmail.com>
Date2014-09-26 08:45 -0600
Message-ID<mailman.14396.1411744547.18130.python-list@python.org>
In reply to#78378
On 09/26/2014 06:54 AM, vijnaana@gmail.com wrote:
> Hi Folks,
> 
> I need to develop a CLI (PyCli or similar)on Linux.
> To be more specific to develop Quagga(open source routing software) like
> commands using python instead of C.
> 
> Need some good reference material for the same.
> 
> P.S google didn't help

I don't doubt that.  I don't understand what you're asking either.  Can
you be more specific?  I've never heard of "PyCli."  What is it?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web