Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-08-26 Thread Milindu Sanoj Kumarage
nks. > > On Mon, Aug 24, 2015 at 7:17 AM, Milindu Sanoj Kumarage < > agentmili...@gmail.com> wrote: > >> Hi, >> >> Here is the recorded Hangout :) >> >> https://www.youtube.com/watch?v=VjMIk5F9Ba >> >> And here is a small blog post I wrote o

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-08-24 Thread Milindu Sanoj Kumarage
le Summer of Code project. Please send us a pull request with your > latest changes. > > Please feel free to contribute to Stratos whenever time permits. > > Thanks > > On Mon, Aug 24, 2015 at 5:47 PM, Milindu Sanoj Kumarage < > agentmili...@gmail.com> wrote: &

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-08-24 Thread Milindu Sanoj Kumarage
Hi, Here is the recorded Hangout :) https://www.youtube.com/watch?v=VjMIk5F9Ba And here is a small blog post I wrote on how I implemented the Stratos CLI http://agentmilindu.com/python-cli-apache-stratos/ On Wed, Aug 19, 2015 at 9:42 PM, Milindu Sanoj Kumarage < agentmili...@gmail.

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-08-19 Thread Milindu Sanoj Kumarage
PM, Chamila De Alwis > wrote: > >> +1 I can attend. >> >> (On a mobile) >> Regards, >> Chamila de Alwis >> Committer and PMC Member - Apache Stratos >> Software Engineer - WSO2 >> http://code.chamiladealwis.com >> On Aug 18, 2015 12:04

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-08-19 Thread Milindu Sanoj Kumarage
/code.chamiladealwis.com > On Aug 18, 2015 12:04 PM, "Milindu Sanoj Kumarage" > wrote: > >> Hi, extremely sorry, the date is 19th, we are having the Hangout on Air >> for Stratos Python CLI on 19th Au from 9:30p.m IST onward. Is this time and >&

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-08-18 Thread Milindu Sanoj Kumarage
Hi, extremely sorry, the date is 19th, we are having the Hangout on Air for Stratos Python CLI on 19th Au from 9:30p.m IST onward. Is this time and date convenient? https://plus.google.com/u/0/events/c8d9682n9bris9at4ucppot9jbo On Tue, Aug 18, 2015 at 9:02 PM, Milindu Sanoj Kumarage < agentm

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-08-18 Thread Milindu Sanoj Kumarage
Hi, We are having a Hangout on Air for Stratos Python CLI on 9:30p.m. IST :) https://plus.google.com/u/0/events/c8d9682n9bris9at4ucppot9jbo On Sun, Aug 16, 2015 at 4:14 PM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > Hi, > > I have finished the documentation

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-08-16 Thread Milindu Sanoj Kumarage
/playlist?list=PL2zdjxqMDj71dlnYitq59PzEoOAG21Uhq <https://youtu.be/dzreFlxlKKM> I'm working on testings and those issues I mentioned earlier. On Wed, Aug 12, 2015 at 12:37 AM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > Hi, > > I want to know which commands sh

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-08-11 Thread Milindu Sanoj Kumarage
4772207163 Blog: code.chamiladealwis.com On Sun, Aug 9, 2015 at 1:59 PM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > Hi, > > I have finished implementing all the CLI commands, except very few which I > have some doubts ( like, how the output should be presented ) :) > >

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-08-09 Thread Milindu Sanoj Kumarage
and when wrong params are given ) I will continue writing the test cases based on them. As discussed on Hangout, I will do a demo, record it and share soon :) On Wed, Jul 29, 2015 at 10:34 AM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > Hi, > > I could finish most

Re: Python CLI, regarding -u and -p flags in single-command mode

2015-08-04 Thread Milindu Sanoj Kumarage
On Fri, Jul 31, 2015 at 8:39 AM, Milindu Sanoj Kumarage < > agentmili...@gmail.com> wrote: > >> Hi, >> >> While developing the Python CLI for Stratos, I came across a small >> question. >> >> >> add-user -u -p -r -f -l >> -e -pr >>

Python CLI, regarding -u and -p flags in single-command mode

2015-07-30 Thread Milindu Sanoj Kumarage
Hi, While developing the Python CLI for Stratos, I came across a small question. add-user -u -p -r -f -l -e -pr In the above CLI command, -u and -p means the username and password of the user that is to be added to the system with this command, right? But we usually use -u and -p flags

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-07-28 Thread Milindu Sanoj Kumarage
ses for utility methods, and will start writing test cases for Stratos specific ones this week. I'm using Tox to run my tests on different Python versions, 2.x ones and 3.z ones. On Thu, Jul 9, 2015 at 2:52 PM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > Hi, > > I in

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-07-09 Thread Milindu Sanoj Kumarage
Hi, I invested last 2 week on some research on Testing frameworks and Security Certificates. CA Bundles and Pem files were something I had no experience, therefor I studied on that. Studied Java security API and Stratos's Java CLI's Certificate handling codes ( Keystores, etc ). *Testing framewo

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-06-11 Thread Milindu Sanoj Kumarage
will research other options also. On Tue, Jun 9, 2015 at 6:46 PM, Manula Thantriwatte < manulachathur...@gmail.com> wrote: > Hi, > > +1 for the non-interactive mode behaviour. > > On Tue, Jun 9, 2015 at 12:08 AM, Milindu Sanoj Kumarage < > agentmili...@gmail.com> wr

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-06-08 Thread Milindu Sanoj Kumarage
Hi, When the CLI is used in the non-interactive mode, it is most likely > included in a (ex: Bash) script. In that case it should notify of the error > and continue, rather than hang up and wait for user input (thus the name > "non-interactive" :) ). WDYT? I too agree. Like to know others' ide

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-06-07 Thread Milindu Sanoj Kumarage
or Python, it seems we have to use Maven Exec plugin here. What you think? :) On Mon, Jun 1, 2015 at 10:21 PM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > Hi, > > Yes :) , and the check sequence would be, > First check username and password variables that

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-06-01 Thread Milindu Sanoj Kumarage
pom.xml [1]. > > [1] > https://github.com/apache/stratos/blob/master/components/org.apache.stratos.python.cartridge.agent/pom.xml > > On Thu, May 28, 2015 at 11:31 AM, Milindu Sanoj Kumarage < > agentmili...@gmail.com> wrote: > >> Hi, >> >> I came up with

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-05-27 Thread Milindu Sanoj Kumarage
tratos folder. > > > > > Regards, > Chamila de Alwis > Software Engineer | WSO2 | +94772207163 > Blog: code.chamiladealwis.com > > > > On Sun, May 10, 2015 at 9:26 PM, Milindu Sanoj Kumarage < > agentmili...@gmail.com> wrote: > >> Hi, >> >>

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-05-10 Thread Milindu Sanoj Kumarage
amed '.stratos', for what that dir is used to? On Sat, May 9, 2015 at 10:16 PM, Imesh Gunaratne wrote: > Hi Milindu, > > On Sat, May 9, 2015 at 9:37 PM, Milindu Sanoj Kumarage < > agentmili...@gmail.com> wrote: >> >> >> 1. Main.py - This contains th

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-05-09 Thread Milindu Sanoj Kumarage
Sorry I missed this. This is my fork's URL https://github.com/agentmilindu/stratos/tree/python-cli/components/org.apache.stratos.python.cli/src/main/python On Sat, May 9, 2015 at 9:37 PM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > Hi, > > I started coding,

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-05-09 Thread Milindu Sanoj Kumarage
015 at 8:17 PM, Chamila De Alwis > wrote: > >> Thanks for the update Milindu! Could you point us to your Stratos fork? >> >> >> Regards, >> Chamila de Alwis >> Software Engineer | WSO2 | +94772207163 >> Blog: code.chamiladealwis.com >> >

Re: Python CLI for Stratos : Design decisions

2015-05-05 Thread Milindu Sanoj Kumarage
gt; Handle responses in a generic way at one place(This is what we learn from > existing CLI). From version to version return codes, response format may > change in Stratos REST API. In that case you only need to change at one > place if you have handled in a generic manner. > >

Python CLI for Stratos : Design decisions

2015-05-04 Thread Milindu Sanoj Kumarage
Hi, I thought of separating the Python CLI into 3 main parts, those are, 1. Main.py - that contains the entry point, it does the initializing parts, creates a CLI instance and runs the loop, 2. CLI.py - this is the actual CLI that extends Cmd2. This contains the command to def mappings, argument

[GSoC 2015] Python CLI for Stratos : Weekly Update

2015-05-01 Thread Milindu Sanoj Kumarage
Hi, I had a Google Hangout session with Chamila and Imesh yesterday. We discussed on how to push the commits. We agreed to use a separate branch on my Stratos fork. Therefor I created a branch as 'python-cli' after checking other branches for branch naming convention used. In this branch I added

Re: GSoC 2015

2015-04-28 Thread Milindu Sanoj Kumarage
2015 at 7:41 AM, Imesh Gunaratne wrote: > +1 Great work Milindu! Yes this is exactly what we wanted. May be you > could remove the space between the colon and the name of the attribute. > > Thanks > > On Sat, Mar 28, 2015 at 7:48 PM, Milindu Sanoj Kumarage < > agentmili...@g

Re: GSoC 2015

2015-03-28 Thread Milindu Sanoj Kumarage
+-| +-cartridges +-| | +-esb | +-tomcat +-name : level-three-group Hope this is how you want it. We can change the styles if you like. On Fri, Mar 27, 2015 at 7:11 PM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: >

Re: GSoC 2015

2015-03-27 Thread Milindu Sanoj Kumarage
nwhile, I'm implementing the tree printing functionality. What are the details that need to be printed? It is data relates to clusters that comes as a JSON, right? Can I have a sample JSON, please. On Thu, Mar 26, 2015 at 12:05 AM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: >

Re: GSoC 2015

2015-03-25 Thread Milindu Sanoj Kumarage
Hi Imesh, Here I have uploaded a simple CLI demo to Pip, you can install it with giving this command if you have Pip on your system. $ sudo pip install stratos then can invoke it simply calling it on CLI as, $ stratos What I'm trying to demonstrate with this demo is the basic functionalists

Re: GSoC 2015

2015-03-23 Thread Milindu Sanoj Kumarage
Hi Imesh, Yes, sure, let's have a Google Hangout. I'm okay with 2.30pm. Thanks.

Re: GSoC 2015

2015-03-23 Thread Milindu Sanoj Kumarage
Mar 11, 2015 at 12:57 AM, Imesh Gunaratne wrote: > Hi Milindu, > > Yes you seems to be on track. Please use Kubernetes getting started guide > here: > https://gist.github.com/imesh/b8f81fac8de39183a504 > > Thanks > > > On Mon, Mar 9, 2015 at 8:22 PM, Milindu Sanoj Kumara

Re: GSoC 2015

2015-03-09 Thread Milindu Sanoj Kumarage
pletion could also use commands with "-" pattern. > > At the moment we do not have much client side validations, most of them > are done in server. You could refer [1] for this. > > [1] https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+CLI+Guide > > On Thu

Re: GSoC 2015

2015-03-05 Thread Milindu Sanoj Kumarage
mean > time can you provide some details on this sample? > > Thanks > > On Thu, Mar 5, 2015 at 12:12 AM, Milindu Sanoj Kumarage < > agentmili...@gmail.com> wrote: > >> Hi, >> I spend last few days investigating a workarounds to solve that '-' >> pr

Re: GSoC 2015

2015-03-04 Thread Milindu Sanoj Kumarage
-u abcdef What's your idea on that? ( We can also provide python script with a wrapper for Windows and Linux ) On Fri, Feb 27, 2015 at 9:45 PM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > Hi, > > the reason is Cmd2 ( and most of the python CLI frameworks )

Re: GSoC 2015

2015-02-27 Thread Milindu Sanoj Kumarage
e any way of using "-" in the CLI commands. I did not get why a CLI > framework would block "-" character. > > Thanks > > On Fri, Feb 27, 2015 at 2:49 PM, Milindu Sanoj Kumarage < > agentmili...@gmail.com> wrote: > >> Hi, >> >>

Re: GSoC 2015

2015-02-27 Thread Milindu Sanoj Kumarage
ts, a wrapper around urllib3 which gives much simpler API that leads to cleaner codes. It's been praised in the community from the beginning. Licence: Apache2 http://docs.python-requests.org/en/latest/# On Wed, Feb 25, 2015 at 3:26 PM, Milindu Sanoj Kumarage < agentmili...@gmail.com>

Re: GSoC 2015

2015-02-25 Thread Milindu Sanoj Kumarage
ses for each > library too, in case any non-compatible or ambiguous ones might be there. > > IMO using a framework from the standard library would be better, since the > pre-requisites will be minimal. > On Feb 25, 2015 9:55 AM, "Milindu Sanoj Kumarage" > wrote: > >&g

Re: GSoC 2015

2015-02-24 Thread Milindu Sanoj Kumarage
Hi, Here is the JIRA issue on this, https://issues.apache.org/jira/browse/STRATOS-1187 Here I have added some of the Python CLI frameworks I checked, I have added a brief for each of them. I also have state a score out of 10 to indicate how best they matches for our need. ( But they are as of my

Re: GSoC 2015

2015-02-24 Thread Milindu Sanoj Kumarage
Hi, Sure, I will prepare a detailed comparison for each framework and package I checked. Is this character limitation only for CLI commands OR for any argument that > is passed? yes, only for the CLI commands only.

Re: GSoC 2015

2015-02-23 Thread Milindu Sanoj Kumarage
ice to hear from you! Thanks for introducing yourself, it seems like > you have a good background for this project. > > On Mon, Feb 23, 2015 at 1:15 AM, Milindu Sanoj Kumarage < > agentmili...@gmail.com> wrote: > >> >> 1. I'm thinking of using a Python CLI

GSoC 2015

2015-02-22 Thread Milindu Sanoj Kumarage
Hi everyone, I'm Milindu Sanoj Kumarage , an undergraduate of University of Colombo School of Computing. This is my second year of participating in GSoC, last year it was Sahana Software Foundation. I'm interested in working on "Python based based Command Line Tool (CLI) for S