Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78902
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python@rgbaz.eu> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.039 |
| X-Spam-Evidence | '*H*': 0.92; '*S*': 0.00; 'framework.': 0.09; 'params': 0.09; 'subject:using': 0.09; 'python': 0.11; '(something': 0.16; 'cli': 0.16; 'from:addr:python': 0.16; 'received:cat': 0.16; 'scripts.': 0.16; 'subject:python': 0.16; 'thanks,': 0.17; 'wrote:': 0.18; 'examples': 0.20; 'example': 0.22; 'header:User-Agent:1': 0.23; 'script': 0.25; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; 'appreciated.': 0.29; "doesn't": 0.30; 'code': 0.31; 'figure': 0.32; 'framework': 0.33; 'maybe': 0.34; 'problem': 0.35; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'executing': 0.36; "didn't": 0.36; 'hi,': 0.36; 'url:org': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'rather': 0.38; "couldn't": 0.39; 'guidance': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'commands': 0.60; 'address': 0.63; 'email addr:gmail.com': 0.63; 'such': 0.63; 'grab': 0.64; 'within': 0.65; 'received:46': 0.66; 'lack': 0.78; 'forward.': 0.84 |
| Date | Thu, 09 Oct 2014 18:08:52 +0200 |
| From | Python UL <python@rgbaz.eu> |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: CLI framework using python |
| References | <274771d2-4a11-40fe-bc31-ccfaa7d32690@googlegroups.com> |
| In-Reply-To | <274771d2-4a11-40fe-bc31-ccfaa7d32690@googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14722.1412871481.18130.python-list@python.org> (permalink) |
| Lines | 34 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1412871481 news.xs4all.nl 2839 [2001:888:2000:d::a6]:60200 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:78902 |
Show key headers only | View raw
On 09-10-14 14:20, vijnaana@gmail.com wrote: > Hi, > > I need to develop a python CLI framework. > > For example if i need to set an ip address in linux: > > ifconfig eth0 172.16.25.125 > > I should be able to use python to do the above. > > 1. The user will execute a python script to which i will pass the params eth0 and ip address (something like ifconf.py eth0 172.16.25.125) > > 2. Within the script i grab the params and do something to the effect of user executing 'ifconfig eth0 172.16.25.125' from the shell. > > 3. There are other such commands for which i will be using python scripts. I came across pyCLI, but it doesn't have much documentation, so couldn't figure out how to move forward. > > 4. The CLI framework needs to reuse code so i didn't want to use pure python and develop a framework from scratch. Rather use something like pyCLI/CLIFF. > > The problem is lack of documentation with examples on how to use the above. > > Any guidance would be greatly appreciated. > > Regards & Thanks, > Vij > Hi Vij Maybe you can have a look at iPython: http://ipython.org/ipython-doc/stable/interactive/tutorial.html gr Arno
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
CLI framework using python vijnaana@gmail.com - 2014-10-09 05:20 -0700
Re: CLI framework using python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-10-09 09:07 -0400
Re: CLI framework using python Unix SA <d.joshi84@gmail.com> - 2014-10-09 20:55 +0530
Re: CLI framework using python Gelonida N <gelonida@gmail.com> - 2014-10-09 18:00 +0200
Re: CLI framework using python Rustom Mody <rustompmody@gmail.com> - 2014-10-10 01:43 -0700
Re: CLI framework using python Gelonida N <gelonida@gmail.com> - 2014-10-10 13:58 +0200
Re: CLI framework using python Python UL <python@rgbaz.eu> - 2014-10-09 18:08 +0200
Re: CLI framework using python vijnaana bhairava <vijnaana@gmail.com> - 2014-10-14 06:33 -0700
Re: CLI framework using python Chris Angelico <rosuav@gmail.com> - 2014-10-15 00:43 +1100
Re: CLI framework using python "Naoki INADA" <songofacandy@gmail.com> - 2014-10-14 07:15 -0700
Re: CLI framework using python vijnaana bhairava <vijnaana@gmail.com> - 2014-10-15 09:05 -0700
csiph-web