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: 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: References: 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" To: "vijnaana bhairava" 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 ------Nodemailer-0.5.0-?=_1-1413296135839 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Click=5F is another CLI framework. It support multi-level nested command like git and it has some nice = utilities. I love it's design. .. =5Fclick: http://click.pocoo.org/3/ =E2=80=94 Sent from Mailbox On Tue, Oct 14, 2014 at 10:35 PM, vijnaana bhairava 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:=20 > 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=3F > If so, what value add does PYCLI do=3F > Regards, > vij > On Thursday, October 9, 2014 5:50:51 PM UTC+5:30, vijnaana bhairava = wrote: >> Hi, >>=20 >>=20 >>=20 >> I need to develop a python CLI framework. >>=20 >>=20 >>=20 >> For example if i need to set an ip address in linux: >>=20 >>=20 >>=20 >> ifconfig eth0 172.16.25.125 >>=20 >>=20 >>=20 >> I should be able to use python to do the above. >>=20 >>=20 >>=20 >> 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) >>=20 >>=20 >>=20 >> 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. >>=20 >>=20 >>=20 >> 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. >>=20 >>=20 >>=20 >> 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. >>=20 >>=20 >>=20 >> The problem is lack of documentation with examples on how to use the = above. >>=20 >>=20 >>=20 >> Any guidance would be greatly appreciated. >>=20 >>=20 >>=20 >> Regards & Thanks, >>=20 >> Vij > --=20 > https://mail.python.org/mailman/listinfo/python-list ------Nodemailer-0.5.0-?=_1-1413296135839 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Click=5F is another CLI = framework.
It support multi-level nested command like git and it has some nice = utilities.
I love it's design.

.. =5Fclick: http://click.pocoo.org/3/

=E2=80=94
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:=20

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=3F
If so, what value add does PYCLI do=3F

Regards,
vij

On Thursday, October 9, 2014 5:50:51 PM UTC+5:30, vijnaana bhairava= wrote:
> Hi,
>=20
>=20
>=20
> I need to develop a python CLI framework.
>=20
>=20
>=20
> For example if i need to set an ip address in linux:
>=20
>=20
>=20
> ifconfig eth0 172.16.25.125
>=20
>=20
>=20
> I should be able to use python to do the above.
>=20
>=20
>=20
> 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)
>=20
>=20
>=20
> 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.
>=20
>=20
>=20
> 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.
>=20
>=20
>=20
> 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.
>=20
>=20
>=20
> The problem is lack of documentation with examples on how to use = the above.
>=20
>=20
>=20
> Any guidance would be greatly appreciated.
>=20
>=20
>=20
> Regards & Thanks,
>=20
> Vij
--=20
https://mail.python.org/mailman/listinfo/python-list


------Nodemailer-0.5.0-?=_1-1413296135839--