Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78380
| Date | 2014-09-26 08:58 -0600 |
|---|---|
| From | Michael Torrie <torriem@gmail.com> |
| Subject | Re: PyCli : Need some reference to good books or tutorials on pycli |
| References | <48e1bd9f-a2c6-4c97-a971-0653e44a29c0@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14395.1411743533.18130.python-list@python.org> (permalink) |
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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
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
csiph-web