Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5D22310FED for ; Wed, 26 Feb 2014 03:06:38 +0000 (UTC) Received: (qmail 64468 invoked by uid 500); 26 Feb 2014 03:06:37 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 64284 invoked by uid 500); 26 Feb 2014 03:06:36 -0000 Mailing-List: contact dev-help@stratos.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.incubator.apache.org Delivered-To: mailing list dev@stratos.incubator.apache.org Received: (qmail 64276 invoked by uid 99); 26 Feb 2014 03:06:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 03:06:35 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of damitha23@gmail.com designates 209.85.160.49 as permitted sender) Received: from [209.85.160.49] (HELO mail-pb0-f49.google.com) (209.85.160.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 03:06:29 +0000 Received: by mail-pb0-f49.google.com with SMTP id jt11so338917pbb.36 for ; Tue, 25 Feb 2014 19:06:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=3FIFtdP4pKO86CvIRmJGCDoHbFt2HWwbbJwprZweqxk=; b=pElfeYXviGHXuNvkRN1j/Q2AgRugK6Ufra/MyBp+wudiRNxToIZGGwGy1/yWpvYRoG X4U78lH+BJK+5bqVCbACFL91Z6C1A8n2NclaBM617+CwLlak14IwBak+YVcf/95VPVif EHEck70Thzt+aBCb0UsxkNh9Gmf9NtB2D2ZS0ErZq2uaUctw5TAwZI3ImlGaBjttQhqG iz2wQeqWMIsLivuc9QuVPcBvr/6ip1A9CWaaGM9/3ItdOVY1+dZ3IEM7v/NuEQakvPZ2 bz5dEoODMX2k9dpTfrk78Z6g3EGKe7VKcA6pAfUqqK/aa3RyRBZ3R129CLgogH5I2nIc /Ppg== MIME-Version: 1.0 X-Received: by 10.68.143.196 with SMTP id sg4mr3540205pbb.155.1393383967723; Tue, 25 Feb 2014 19:06:07 -0800 (PST) Received: by 10.68.236.133 with HTTP; Tue, 25 Feb 2014 19:06:07 -0800 (PST) In-Reply-To: References: Date: Wed, 26 Feb 2014 08:36:07 +0530 Message-ID: Subject: Re: Python based CLI tool From: damitha kumarage To: dev@stratos.incubator.apache.org Content-Type: multipart/alternative; boundary=047d7b2e45266e975a04f3467ccc X-Virus-Checked: Checked by ClamAV on apache.org --047d7b2e45266e975a04f3467ccc Content-Type: text/plain; charset=ISO-8859-1 It is good if we can write the agent too in python. Does the early obstacles(like dep-sync) that make it hard removed now? Damitha On Mon, Feb 17, 2014 at 7:36 AM, Pradeep Fernando wrote: > Hi guys, > > We have a Java based client in stratos for legacy reasons. we used WS > calls to talk to backend and client has to made SOAP requests. (java stubs > were already avaialable and hence Java tool) > > Now we use rest endpoints and hence we can make use of scripting language > easily. Most of the CLI clients i have seen make use of script language and > its kind of cool. I personally prefer python. > > I did a bit of googling and tried out of few things to come up the initial > POC version. Python provides excellent support for making such utilities. > > it provides, optparse module and command-interpreter module. > > http://docs.python.org/2/library/cmd.html > http://docs.python.org/2/library/optparse.html > > I would like to develop this further as my weekend project. (not > targetting alpha). I need a commit location. Is it okay to create a scratch > branch... > > wdyt ? > > --pradeep > > > -- __________________________________________________________________ Damitha Kumarage http://people.apache.org/ __________________________________________________________________ --047d7b2e45266e975a04f3467ccc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
It is good if we can write the agent too in python. Does t= he early obstacles(like dep-sync) that make it hard removed now?

Dam= itha


On Mon, Feb 17, 2014 at 7:36 AM, Pradeep Fernando <<= a href=3D"mailto:pradeepfn@gmail.com" target=3D"_blank">pradeepfn@gmail.com= > wrote:
Hi= guys,

We have a Java based client in stratos for legacy reaso= ns. we used WS calls to talk to backend and client has to made SOAP request= s. (java stubs were already avaialable and hence Java tool)

Now we use rest endpoints and hence we can make use of scripting = language easily. Most of the CLI clients i have seen make use of script lan= guage and its kind of cool. I personally prefer python.

I did a bit of googling and tried out of few things to come up the initial = POC version. Python provides excellent support for making such utilities.
it provides, optparse module and command-interpreter module.

http:/= /docs.python.org/2/library/cmd.html
http://docs.python.org/2/libra= ry/optparse.html

I would like to develop this further as my weekend project. (not = targetting alpha). I need a commit location. Is it okay to create a scratch= branch...

wdyt ?

--pr= adeep





--
_______________________= ___________________________________________
Damitha Kumarage
http://people.apache.org/
___________= _______________________________________________________
--047d7b2e45266e975a04f3467ccc--