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

2015-08-26 Thread Milindu Sanoj Kumarage
Hi Lahiru, It seems it is the link. Thanks for pointing out :) Here is the working link. https://www.youtube.com/watch?v=VjMIk5F9Bas Thanks On Wed, Aug 26, 2015 at 10:36 PM, Lahiru Sandaruwan wrote: > Hi Milindu, > > Recorded hangout seems not working now. Any clue? > > Thanks. > > On Mon, Au

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

2015-08-26 Thread Lahiru Sandaruwan
Hi Milindu, Recorded hangout seems not working now. Any clue? Thanks. 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 on ho

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

2015-08-24 Thread Milindu Sanoj Kumarage
Hi Imesh, Thank you for the complement, it means a lot to me :) Here is my pull request with all the latest changes, including the changes suggested in the public hangout. https://github.com/apache/stratos/pull/437 Definitely I will be contributing to Stratos project :) My experience working wit

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

2015-08-24 Thread Imesh Gunaratne
Hi Milindu, Thanks for all the hard work! You have done a great job completing this Google 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 Kumar

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.com> wrote

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

2015-08-19 Thread Milindu Sanoj Kumarage
Hi, Here is the link to Hangout :) https://plus.google.com/hangouts/_/hoaevent/AP36tYff-vrxKu7_Mymm8ZuD0_8hqlP_XRHSADiig8b4mhb7UK1pjA On Wed, Aug 19, 2015 at 9:38 PM, Imesh Gunaratne wrote: > +1 Can you please share the Hangout link? > > Thanks > > On Tue, Aug 18, 2015 at 10:54 PM, Chamila De

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

2015-08-19 Thread Imesh Gunaratne
+1 Can you please share the Hangout link? Thanks On Tue, Aug 18, 2015 at 10:54 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

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

2015-08-19 Thread Milindu Sanoj Kumarage
Hi, the Hangout for Stratos Python CLI begins on 9:30 pm IST :) On Tue, Aug 18, 2015 at 10:54 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

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

2015-08-18 Thread Chamila De Alwis
+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 PM, "Milindu Sanoj Kumarage" wrote: > Hi, extremely sorry, the date is 19th, we are having the Hangout on Air > for St

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 < agentmili.

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 except for some fe

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

2015-08-16 Thread Milindu Sanoj Kumarage
Hi, I have finished the documentation except for some few commands that I still have issues. https://docs.google.com/document/d/1GEdrOyIGF-zdwVry7t6-WYFMeEC0Y_Ki3ExyZFYCXdw/edit?usp=sharing I did two small demonstration videos on how to use and how to config :) https://www.youtube.com/playlist

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

2015-08-11 Thread Milindu Sanoj Kumarage
Hi, I want to know which commands should output that tree-like view of JSON data. in list-deployment-policies what 'Accessibility' means? How i should retrieve it from the JSON response? +-+---+ | Id | Accessibility | +=+

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

2015-08-09 Thread Imesh Gunaratne
Hi Milindu, Great! Please arrange a public Google Hangout and do a demo. We will also need to do a code review. Thanks On Mon, Aug 10, 2015 at 12:14 AM, Chamila De Alwis wrote: > Hi Milindu, > > Great work so far! Could you mention what commands and outputs are less > clear? > > > Regards, > C

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

2015-08-09 Thread Chamila De Alwis
Hi Milindu, Great work so far! Could you mention what commands and outputs are less clear? Regards, Chamila de Alwis Committer and PMC Member - Apache Stratos Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Sun, Aug 9, 2015 at 1:59 PM, Milindu Sanoj Kumarage < agentmi

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

2015-08-09 Thread Milindu Sanoj Kumarage
Hi, I have finished implementing all the CLI commands, except very few which I have some doubts ( like, how the output should be presented ) :) I started writing a document explaining each and every command with their expected outputs ( when correct params are given, when no params are given and

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

2015-07-28 Thread Milindu Sanoj Kumarage
Hi, I could finish most of the listing command and now working with the create and update commands. I'm running Java CLI to get an idea how the output should be presented. Had to fix some issues related to that "-" issue also, regarding auto-completion. I started writing test cases for utility met

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-12 Thread Chamila De Alwis
Hi Milindu, It's great to see a complete workflow being executed! The format the data is displayed in looks good. Let's continue to add the commands one by one. Py.Test is a great framework to do Python unit testing. Let us know the results of the research on test frameworks. There might be bette

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

2015-06-11 Thread Milindu Sanoj Kumarage
Hi everyone, We had a Google Hangout yesterday to discuss the progress. Since we have finished the foundation of the CLI, we thought of moving to calling Stratos REST API parts. I'm currently working with Mock IaaS. As a test run, I tried to list the available users and show on the terminal as a t

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

2015-06-09 Thread Manula Thantriwatte
Hi, +1 for the non-interactive mode behaviour. On Tue, Jun 9, 2015 at 12:08 AM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > 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 >>

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-08 Thread Chamila De Alwis
Hi Milindu, On Sun, Jun 7, 2015 at 11:14 PM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > > I added a POM to my module dir, much like Python Agent's one, but without > some dependencies and plugins which seems not relevant to Python CLI. Now > Python CLI would be treated as a child c

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

2015-06-07 Thread Milindu Sanoj Kumarage
Hi, I added a POM to my module dir, much like Python Agent's one, but without some dependencies and plugins which seems not relevant to Python CLI. Now Python CLI would be treated as a child component :) I finished the @auth decorator as we discussed in previous discussions. Now working well in S

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

2015-06-01 Thread Milindu Sanoj Kumarage
Hi, Yes :) , and the check sequence would be, First check username and password variables that's in memory, If they are not set, then check the arguments passed. If username and password are not passed as arguments, then check the environment variables. If they are not found, then, if in

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

2015-05-31 Thread Anuruddha Liyanarachchi
Hi Milindu, All the requests sent to Stratos needs an username and a password for > authentications, right? I was thinking if I can create a python decorator ( > maybe as @auth ) to check if the username and password is known before > sending the request. If we use a decorator, for each api c

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

2015-05-27 Thread Milindu Sanoj Kumarage
Hi, I came up with this structure after studying the needs. Main.py, CLI.py and Stratos.py would be same as of our previous discussions. Configs.py would hold configurations, etc. It would be like the CliConstants.java and holds the default Stratos directory, Stratos prompt string, etc. And it

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

2015-05-10 Thread Chamila De Alwis
Hi Milindu, We should always log enough information to a log file. In fact,* .stratos* folder in the Java CLI is used to store the *stratos-cli.log* file. INFO level logs should be used to log important messages, while DEBUG level should be verbose enough to pinpoint an error. The other use of th

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

2015-05-10 Thread Milindu Sanoj Kumarage
Hi, Thanks Chamila, I will update the setup.py with these info. I too taught of using 'stratos-cli' first, but doubted you wouldn't like that because the user has to type this when working with Single Command Line Mode. But if you think that would not be a problem, then let's change that as 'strat

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

2015-05-09 Thread Imesh Gunaratne
Hi Milindu, On Sat, May 9, 2015 at 9:37 PM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > > > 1. Main.py - This contains the entry point, it does the initializing > parts, creates a CLI instance and runs the loop and other stuffs. > +1 > > 2. CLI.py - This is the actual CLI that exten

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

2015-05-09 Thread Chamila De Alwis
Hi Milindu, Thanks for the update! You can use the following information for the setup.py description. author=Apache Stratos author_email=dev@stratos.apache.org description=CLI tool to interact with Apache Stratos url=http://stratos.apache.org How about having 'stratos-cli' inste

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, did the basic stuffs. >

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

2015-05-09 Thread Milindu Sanoj Kumarage
Hi, I started coding, did the basic stuffs. I have separated the Python CLI into 3 main parts for the moment and those are, 1. Main.py - This contains the entry point, it does the initializing parts, creates a CLI instance and runs the loop and other stuffs. 2. CLI.py - This is the actual CLI th

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

2015-05-01 Thread Imesh Gunaratne
It was good to have the Hangout Milindu! Thanks for joining! Please keep your remote Git repository up to date with the changes you do and it would be wise to add some documentation may be using a gist or a README.md file. As we discussed in the meeting please try to draw a high level architectur

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

2015-05-01 Thread Chamila De Alwis
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 On Fri, May 1, 2015 at 5:30 PM, Milindu Sanoj Kumarage < agentmili...@gmail.com> wrote: > Hi, > > I had a Google Hangout sess

[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