<span id="mailbox-conversation"><div>Click_ is another CLI framework.</div>
<div>It support multi-level nested command like git and it has some nice utilities.</div>
<div>I love it's design.<br></div>
<div>
<div id="mb-reply"><br></div>
<div id="mb-reply">.. _click: http://click.pocoo.org/3/</div>
</div></span><div class="mailbox_signature">
<br>—<br>Sent from <a href="https://www.dropbox.com/mailbox">Mailbox</a>
</div>
<br><br><div class="gmail_quote"><p>On Tue, Oct 14, 2014 at 10:35 PM, vijnaana bhairava <span dir="ltr"><<a href="mailto:vijnaana@gmail.com" target="_blank">vijnaana@gmail.com</a>></span> wrote:<br></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><p>Hi Folks,
<br><br>The requirement is to develop a CLI framework in python for a linux router.
<br>The suggestions i got is to use PyCli/Cliff. Not sure which would be the right choice! Also, a few APIs are mentioned here:
<br><br>https://pythonhosted.org/pyCLI/#module-cli.app
<br><br>Since i couldn't find any actual implementation which uses pyCli,
<br>i can't figure out how to make use of pyCLI.
<br><br>Another question i have is whether it uses argparse?
<br>If so, what value add does PYCLI do?
<br><br>Regards,
<br>vij
<br><br>On Thursday, October 9, 2014 5:50:51 PM UTC+5:30, vijnaana bhairava wrote:
<br>> Hi,
<br>>
<br>>
<br>>
<br>> I need to develop a python CLI framework.
<br>>
<br>>
<br>>
<br>> For example if i need to set an ip address in linux:
<br>>
<br>>
<br>>
<br>> ifconfig eth0 172.16.25.125
<br>>
<br>>
<br>>
<br>> I should be able to use python to do the above.
<br>>
<br>>
<br>>
<br>> 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)
<br>>
<br>>
<br>>
<br>> 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.
<br>>
<br>>
<br>>
<br>> 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.
<br>>
<br>>
<br>>
<br>> 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.
<br>>
<br>>
<br>>
<br>> The problem is lack of documentation with examples on how to use the above.
<br>>
<br>>
<br>>
<br>> Any guidance would be greatly appreciated.
<br>>
<br>>
<br>>
<br>> Regards & Thanks,
<br>>
<br>> Vij
<br>--
<br>https://mail.python.org/mailman/listinfo/python-list
<br></p></blockquote></div><br>