Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79097
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <songofacandy@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.024 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'nested': 0.07; 'apis': 0.09; 'framework.': 0.09; 'git': 0.09; 'params': 0.09; 'subject:using': 0.09; '\xe2\x80\x94': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; '(something': 0.16; 'cli': 0.16; 'folks,': 0.16; 'scripts.': 0.16; 'url:pocoo': 0.16; 'subject:python': 0.16; 'thursday,': 0.16; 'thanks,': 0.17; 'wrote:': 0.18; 'examples': 0.20; 'command': 0.22; 'example': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'question': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'script': 0.25; '>': 0.26; 'pass': 0.26; 'header:In- Reply-To:1': 0.27; 'appreciated.': 0.29; "doesn't": 0.30; 'url:mailman': 0.30; 'code': 0.31; 'figure': 0.32; 'another': 0.32; 'linux': 0.33; 'url:python': 0.33; 'framework': 0.33; 'actual': 0.34; 'problem': 0.35; "can't": 0.35; 'something': 0.35; 'requirement': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; '14,': 0.36; 'executing': 0.36; 'url:listinfo': 0.36; "didn't": 0.36; 'hi,': 0.36; 'url:org': 0.36; 'should': 0.36; 'so,': 0.37; 'pm,': 0.38; 'rather': 0.38; 'does': 0.39; "couldn't": 0.39; 'guidance': 0.39; 'sure': 0.39; 'url:mail': 0.40; 'how': 0.40; 'commands': 0.60; 'mentioned': 0.61; 'url:3': 0.61; 'here:': 0.62; 'address': 0.63; 'header :Message-Id:1': 0.63; 'such': 0.63; 'grab': 0.64; 'love': 0.65; 'to:addr:gmail.com': 0.65; 'within': 0.65; 'mailbox': 0.68; 'design.': 0.68; 'lack': 0.78; 'argparse?': 0.84; 'forward.': 0.84; 'url:app': 0.84; 'url:click': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:mime-version:message-id:in-reply-to:references:from:to:cc :subject:content-type; bh=WFHTerPEP5m2kZFjwsHgAGkon8/dA9VVkWypdChDgGc=; b=lOzlyMJF+XuvOaWEr8dcTPXO8GDGOH0qKI2UTNfvISLvZ3wsllUJ15VAj7LBIYAsI2 E/BlEnRcPvclAjc4Z9UaIcgU+B5skmDZwT7J4C4PgYkO7/gZbq30cMxGfZv4FSXib+Oz cMwnGU6z1GZEgh7XTGGBPNWJxxeLgAr2xpNiBxLbso9D9LlbPIF5sl/gLSnBRQ4auvWQ RYvbLb0UXCKn8HAaTcR78S77nGy63mT5SXOP5HQ4zBr1kXHtVg3ANOrALq3xTtq1g8bq moyHcjHGPqpAU4MtcHVQKz5HNkz3jAO9i8VAVB0kbhIoIY/uCAfq0unDILbuPtrQ6WBv +Siw== |
| X-Received | by 10.140.93.130 with SMTP id d2mr9184859qge.28.1413296136347; Tue, 14 Oct 2014 07:15:36 -0700 (PDT) |
| Date | Tue, 14 Oct 2014 07:15:35 -0700 (PDT) |
| X-Google-Original-Date | Tue, 14 Oct 2014 14:15:34 GMT |
| MIME-Version | 1.0 |
| X-Mailer | Nodemailer (0.5.0; +http://www.nodemailer.com/) |
| In-Reply-To | <c92a2d2c-d63b-47e5-a059-289f0ad209aa@googlegroups.com> |
| References | <c92a2d2c-d63b-47e5-a059-289f0ad209aa@googlegroups.com> |
| X-Orchestra-Oid | F7FEFD1D-4F10-4ED0-B437-9A3F163EE031 |
| X-Orchestra-Sig | b94c4d3b214d42024b47c2e7f564d6adfa1e3443 |
| X-Orchestra-Thrid | T9A8D81D7-4520-4662-8755-94CDB7973859_1481488509888278302 |
| X-Orchestra-Thrid-Sig | 2b888170a834babfed58706f860822c572a2ee28 |
| X-Orchestra-Account | 7c3a80027602dccead024f315ae5e14964d4673f |
| From | "Naoki INADA" <songofacandy@gmail.com> |
| To | "vijnaana bhairava" <vijnaana@gmail.com> |
| Subject | Re: CLI framework using python |
| Content-Type | multipart/alternative; boundary="----Nodemailer-0.5.0-?=_1-1413296135839" |
| Cc | python-list@python.org |
| 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.14849.1413296144.18130.python-list@python.org> (permalink) |
| Lines | 190 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1413296144 news.xs4all.nl 2914 [2001:888:2000:d::a6]:39406 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:79097 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Click_ is another CLI framework. It support multi-level nested command like git and it has some nice utilities. I love it's design. .. _click: http://click.pocoo.org/3/ — Sent from Mailbox On Tue, Oct 14, 2014 at 10:35 PM, vijnaana bhairava <vijnaana@gmail.com> wrote: > Hi Folks, > The requirement is to develop a CLI framework in python for a linux router. > The suggestions i got is to use PyCli/Cliff. Not sure which would be the right choice! Also, a few APIs are mentioned here: > https://pythonhosted.org/pyCLI/#module-cli.app > Since i couldn't find any actual implementation which uses pyCli, > i can't figure out how to make use of pyCLI. > Another question i have is whether it uses argparse? > If so, what value add does PYCLI do? > Regards, > vij > On Thursday, October 9, 2014 5:50:51 PM UTC+5:30, vijnaana bhairava 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 > -- > https://mail.python.org/mailman/listinfo/python-list
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