Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-30 Thread Grainier Perera
Hi Madhawa,

Great progress so far. As per our offline discussion, for the above
callback issue, please go ahead with the workaround you found on [1]. Since
it only affects Python 3.4 and above, use a version check to decide whether
to use the workaround or not. Once you get all the test cases to work with
Python 3.X, please verify it with Python 2.X as well. Once it's completed,
we can then move on to wrapping Event simulator.

[1] https://bugs.python.org/issue20891

Thanks,
Grainier.

On Mon, May 29, 2017 at 9:04 AM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
> I have started working on debugger wrapping. So far I have made progress
> through first two test cases at [1]. However, the code is failing in test
> case 3.
>
> *This is because of python crashing with following error when callback
> events are fired from non python created threads. The issue affects not
> only the debugger but other callbacks such as StreamCallback and
> QueryCallback.*
>
>> Fatal Python error: take_gil: NULL tstate
>
>
> This error appear only in Python versions 3.4+.  The code works fine when
> I tested with Python 3.3 and below. Furthermore, the error doesn't appear
> in any Python version when the debugger is connected. During further
> investigation of error, I found the documented bug [2] of Python which
> affect Python 3.4+ in similar manner.
>
> So far, a possible solution we have is to use a single python created
> thread to transfer callbacks from Java side to Python. For this purpose, we
> can use a queue (in java) to hold callback events triggered from java and a
> single (python created) thread to transfer the events in queue to python.
> However, this approach might have some performance issues. Can I know your
> opinion on this approach? (So far I have not implemented this approach)
>
> Furthermore, I have opened an issue in pyjnius github [3] (the API I use
> to communicate between Java and Python) on this matter. It might also be
> possible to fix the issue from pyjnius side using some of the suggestions
> available in [2] and [4]. I will look into this approach as well.
>
> [1] - https://github.com/wso2/siddhi/blob/79608b6aea4fbd99bb08cf64493c8b
> 4144bc32e4/modules/siddhi-core/src/test/java/org/wso2/
> siddhi/core/debugger/TestDebugger.java
> [2] - https://bugs.python.org/issue20891
> [3] - https://github.com/kivy/pyjnius/issues/276
> [4] - https://bugs.python.org/issue19576
>
> Thanks and Regards,
> Madhawa
>
> On Thu, May 25, 2017 at 5:32 AM, Sriskandarajah Suhothayan 
> wrote:
>
>> Great, you can do the debugger now, he said after finishing the debugger
>> work, work on wrap event simulator .
>>
>> Regards
>> Suho
>>
>> On Wed, May 24, 2017 at 6:19 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have updated the README.md file. Will let you know when I have
>>> progress with debugger.
>>>
>>> Thanks
>>> Madhawa
>>>
>>> On Mon, May 22, 2017 at 12:41 PM, Grainier Perera 
>>> wrote:
>>>
 Hi Madhawa,

 I went through your impl and it works great. Try to improve the test
 cases and documentation (README.md on git) when you get a time.

 Furthermore, I have added Event simulator REST API endpoints to the doc
 that you shared earlier. After getting debugger to work, try to wrap event
 simulator endpoints as well. You can refer to [1] for the documentation on
 them.

 [1] https://docs.wso2.com/display/DAS400/Simulating+Events

 Regards,
 Grainier.

 On Sun, May 21, 2017 at 6:00 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I started working on the native wrapper. So far, have the very basic
> functionality working for Siddhi 3.1 and Siddhi 4.0.
> I am maintaining my code at the repo [1].
>
> Next step is getting the Siddhi debugger working. I will let you know
> when it is done.
>
> [1] - https://github.com/madhawav/SiddhiCEPPythonAPI
>
> Thanks,
> Madhawa
>
>
> On Fri, May 19, 2017 at 12:47 PM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> Sure we'll look into that.
>>
>> As the immediate next step can you make finish the work on native
>> Siddhi working with python.
>> Make sure Siddhi debugger also works.
>>
>> Regards
>> Suho
>>
>> On Fri, May 19, 2017 at 11:45 AM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have updated the shared doc [1] by adding "List of Admin Services
>>> to be used for DAS 3.1". Feel free to add-in your suggestions as well.
>>>
>>> Also, are their any documentation available on specific Admin
>>> Services APIs I have mentioned in doc? Such as a Reference Guide 
>>> describing
>>> the methods and parameters of individual Admin Services APIs. I am 
>>> already
>>> aware of the general doc

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-28 Thread Madhawa Vidanapathirana
Hi,
I have started working on debugger wrapping. So far I have made progress
through first two test cases at [1]. However, the code is failing in test
case 3.

*This is because of python crashing with following error when callback
events are fired from non python created threads. The issue affects not
only the debugger but other callbacks such as StreamCallback and
QueryCallback.*

> Fatal Python error: take_gil: NULL tstate


This error appear only in Python versions 3.4+.  The code works fine when I
tested with Python 3.3 and below. Furthermore, the error doesn't appear in
any Python version when the debugger is connected. During further
investigation of error, I found the documented bug [2] of Python which
affect Python 3.4+ in similar manner.

So far, a possible solution we have is to use a single python created
thread to transfer callbacks from Java side to Python. For this purpose, we
can use a queue (in java) to hold callback events triggered from java and a
single (python created) thread to transfer the events in queue to python.
However, this approach might have some performance issues. Can I know your
opinion on this approach? (So far I have not implemented this approach)

Furthermore, I have opened an issue in pyjnius github [3] (the API I use to
communicate between Java and Python) on this matter. It might also be
possible to fix the issue from pyjnius side using some of the suggestions
available in [2] and [4]. I will look into this approach as well.

[1] -
https://github.com/wso2/siddhi/blob/79608b6aea4fbd99bb08cf64493c8b4144bc32e4/modules/siddhi-core/src/test/java/org/wso2/siddhi/core/debugger/TestDebugger.java
[2] - https://bugs.python.org/issue20891
[3] - https://github.com/kivy/pyjnius/issues/276
[4] - https://bugs.python.org/issue19576

Thanks and Regards,
Madhawa

On Thu, May 25, 2017 at 5:32 AM, Sriskandarajah Suhothayan 
wrote:

> Great, you can do the debugger now, he said after finishing the debugger
> work, work on wrap event simulator .
>
> Regards
> Suho
>
> On Wed, May 24, 2017 at 6:19 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>>
>> I have updated the README.md file. Will let you know when I have progress
>> with debugger.
>>
>> Thanks
>> Madhawa
>>
>> On Mon, May 22, 2017 at 12:41 PM, Grainier Perera 
>> wrote:
>>
>>> Hi Madhawa,
>>>
>>> I went through your impl and it works great. Try to improve the test
>>> cases and documentation (README.md on git) when you get a time.
>>>
>>> Furthermore, I have added Event simulator REST API endpoints to the doc
>>> that you shared earlier. After getting debugger to work, try to wrap event
>>> simulator endpoints as well. You can refer to [1] for the documentation on
>>> them.
>>>
>>> [1] https://docs.wso2.com/display/DAS400/Simulating+Events
>>>
>>> Regards,
>>> Grainier.
>>>
>>> On Sun, May 21, 2017 at 6:00 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,

 I started working on the native wrapper. So far, have the very basic
 functionality working for Siddhi 3.1 and Siddhi 4.0.
 I am maintaining my code at the repo [1].

 Next step is getting the Siddhi debugger working. I will let you know
 when it is done.

 [1] - https://github.com/madhawav/SiddhiCEPPythonAPI

 Thanks,
 Madhawa


 On Fri, May 19, 2017 at 12:47 PM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> Sure we'll look into that.
>
> As the immediate next step can you make finish the work on native
> Siddhi working with python.
> Make sure Siddhi debugger also works.
>
> Regards
> Suho
>
> On Fri, May 19, 2017 at 11:45 AM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>>
>> I have updated the shared doc [1] by adding "List of Admin Services
>> to be used for DAS 3.1". Feel free to add-in your suggestions as well.
>>
>> Also, are their any documentation available on specific Admin
>> Services APIs I have mentioned in doc? Such as a Reference Guide 
>> describing
>> the methods and parameters of individual Admin Services APIs. I am 
>> already
>> aware of the general documentation on Admin Services available at [2]
>>
>> [1] - https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
>> 2JHh9RJya2VdHlHOTl4/edit?usp=sharing
>> [2] - https://docs.wso2.com/display/DAS310/Calling+Admin+Services+
>> from+Apps
>>
>> Thanks,
>> Madhawa
>>
>> On Tue, May 9, 2017 at 11:11 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> +1 for the approach.
>>> We will add the classes
>>>
>>> On Tue, May 9, 2017 at 12:05 AM Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,

 I will look into REST side also then. Already found good APIs to
 work with Native Calls and SOAP.

>>

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-24 Thread Sriskandarajah Suhothayan
Great, you can do the debugger now, he said after finishing the debugger
work, work on wrap event simulator .

Regards
Suho

On Wed, May 24, 2017 at 6:19 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I have updated the README.md file. Will let you know when I have progress
> with debugger.
>
> Thanks
> Madhawa
>
> On Mon, May 22, 2017 at 12:41 PM, Grainier Perera 
> wrote:
>
>> Hi Madhawa,
>>
>> I went through your impl and it works great. Try to improve the test
>> cases and documentation (README.md on git) when you get a time.
>>
>> Furthermore, I have added Event simulator REST API endpoints to the doc
>> that you shared earlier. After getting debugger to work, try to wrap event
>> simulator endpoints as well. You can refer to [1] for the documentation on
>> them.
>>
>> [1] https://docs.wso2.com/display/DAS400/Simulating+Events
>>
>> Regards,
>> Grainier.
>>
>> On Sun, May 21, 2017 at 6:00 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I started working on the native wrapper. So far, have the very basic
>>> functionality working for Siddhi 3.1 and Siddhi 4.0.
>>> I am maintaining my code at the repo [1].
>>>
>>> Next step is getting the Siddhi debugger working. I will let you know
>>> when it is done.
>>>
>>> [1] - https://github.com/madhawav/SiddhiCEPPythonAPI
>>>
>>> Thanks,
>>> Madhawa
>>>
>>>
>>> On Fri, May 19, 2017 at 12:47 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 Sure we'll look into that.

 As the immediate next step can you make finish the work on native
 Siddhi working with python.
 Make sure Siddhi debugger also works.

 Regards
 Suho

 On Fri, May 19, 2017 at 11:45 AM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I have updated the shared doc [1] by adding "List of Admin Services to
> be used for DAS 3.1". Feel free to add-in your suggestions as well.
>
> Also, are their any documentation available on specific Admin Services
> APIs I have mentioned in doc? Such as a Reference Guide describing the
> methods and parameters of individual Admin Services APIs. I am already
> aware of the general documentation on Admin Services available at [2]
>
> [1] - https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
> 2JHh9RJya2VdHlHOTl4/edit?usp=sharing
> [2] - https://docs.wso2.com/display/DAS310/Calling+Admin+Services+
> from+Apps
>
> Thanks,
> Madhawa
>
> On Tue, May 9, 2017 at 11:11 AM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> +1 for the approach.
>> We will add the classes
>>
>> On Tue, May 9, 2017 at 12:05 AM Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I will look into REST side also then. Already found good APIs to
>>> work with Native Calls and SOAP.
>>>
>>> I am also trying to come up with a list of classes of Siddhi Java
>>> Library that should be exposed via Python API.  I don't think its 
>>> required
>>> to wrap the internal classes since their functionality is not directly 
>>> used
>>> by Siddhi Java Library users.
>>>
>>> I will update the list of classes to be wrapped at link below. Feel
>>> free to add in your suggestions as well.
>>> https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
>>> 2JHh9RJya2VdHlHOTl4/edit?usp=sharing
>>>
>>> Thanks and Regards,
>>> Madhawa
>>>
>>>
>>> On Sun, May 7, 2017 at 11:26 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 Siddhi 3.x is compatible with DAS 3.1, and Siddhi 4.x is
 compatible with DAS 4.0 which we are still working on.

 Siddhi APIs does not drastically change from 3.x to 4.x,
 DAS 3.1 uses SOAP and DAS 4.0 uses HTTP/REST APIs

 So apart from native APIs, if you have figured out a way to use
 REST and SOAP we are good enough.

 Regards
 Suho

 On Sun, May 7, 2017 at 12:00 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
> Need bit more clarity on what versions of products we should build
> on.
>
> Are we developing on DAS 3.1 (as mentioned in beginning of mail
> thread) or 4.0 (mentioned in previous mail) ?
> Also, what version of WSO2 CEP?
>
> According to my understanding so far, we are developing on Siddhi
> Java Library 4.0.
>
> Thanks and Regards,
> Madhawa
>
> On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>>
>>
>> On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-24 Thread Madhawa Vidanapathirana
Hi,

I have updated the README.md file. Will let you know when I have progress
with debugger.

Thanks
Madhawa

On Mon, May 22, 2017 at 12:41 PM, Grainier Perera  wrote:

> Hi Madhawa,
>
> I went through your impl and it works great. Try to improve the test cases
> and documentation (README.md on git) when you get a time.
>
> Furthermore, I have added Event simulator REST API endpoints to the doc
> that you shared earlier. After getting debugger to work, try to wrap event
> simulator endpoints as well. You can refer to [1] for the documentation on
> them.
>
> [1] https://docs.wso2.com/display/DAS400/Simulating+Events
>
> Regards,
> Grainier.
>
> On Sun, May 21, 2017 at 6:00 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>>
>> I started working on the native wrapper. So far, have the very basic
>> functionality working for Siddhi 3.1 and Siddhi 4.0.
>> I am maintaining my code at the repo [1].
>>
>> Next step is getting the Siddhi debugger working. I will let you know
>> when it is done.
>>
>> [1] - https://github.com/madhawav/SiddhiCEPPythonAPI
>>
>> Thanks,
>> Madhawa
>>
>>
>> On Fri, May 19, 2017 at 12:47 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> Sure we'll look into that.
>>>
>>> As the immediate next step can you make finish the work on native Siddhi
>>> working with python.
>>> Make sure Siddhi debugger also works.
>>>
>>> Regards
>>> Suho
>>>
>>> On Fri, May 19, 2017 at 11:45 AM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,

 I have updated the shared doc [1] by adding "List of Admin Services to
 be used for DAS 3.1". Feel free to add-in your suggestions as well.

 Also, are their any documentation available on specific Admin Services
 APIs I have mentioned in doc? Such as a Reference Guide describing the
 methods and parameters of individual Admin Services APIs. I am already
 aware of the general documentation on Admin Services available at [2]

 [1] - https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
 2JHh9RJya2VdHlHOTl4/edit?usp=sharing
 [2] - https://docs.wso2.com/display/DAS310/Calling+Admin+Services+
 from+Apps

 Thanks,
 Madhawa

 On Tue, May 9, 2017 at 11:11 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> +1 for the approach.
> We will add the classes
>
> On Tue, May 9, 2017 at 12:05 AM Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>>
>> I will look into REST side also then. Already found good APIs to work
>> with Native Calls and SOAP.
>>
>> I am also trying to come up with a list of classes of Siddhi Java
>> Library that should be exposed via Python API.  I don't think its 
>> required
>> to wrap the internal classes since their functionality is not directly 
>> used
>> by Siddhi Java Library users.
>>
>> I will update the list of classes to be wrapped at link below. Feel
>> free to add in your suggestions as well.
>> https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
>> 2JHh9RJya2VdHlHOTl4/edit?usp=sharing
>>
>> Thanks and Regards,
>> Madhawa
>>
>>
>> On Sun, May 7, 2017 at 11:26 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> Siddhi 3.x is compatible with DAS 3.1, and Siddhi 4.x is
>>> compatible with DAS 4.0 which we are still working on.
>>>
>>> Siddhi APIs does not drastically change from 3.x to 4.x,
>>> DAS 3.1 uses SOAP and DAS 4.0 uses HTTP/REST APIs
>>>
>>> So apart from native APIs, if you have figured out a way to use REST
>>> and SOAP we are good enough.
>>>
>>> Regards
>>> Suho
>>>
>>> On Sun, May 7, 2017 at 12:00 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,
 Need bit more clarity on what versions of products we should build
 on.

 Are we developing on DAS 3.1 (as mentioned in beginning of mail
 thread) or 4.0 (mentioned in previous mail) ?
 Also, what version of WSO2 CEP?

 According to my understanding so far, we are developing on Siddhi
 Java Library 4.0.

 Thanks and Regards,
 Madhawa

 On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
 mo...@wso2.com> wrote:

>
>
> On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> @Mohan on DAS 4.0 do we have similar services like admin services
>> at the worker?
>>
>> Shall we come up with the exact list of apis that we need to have
>> ? So he can also incorporate them.
>>
>
> Yes, I have already listed some apis in [1].. Will get the
> finalized list soon and share with Madhaw

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-22 Thread Grainier Perera
Hi Madhawa,

I went through your impl and it works great. Try to improve the test cases
and documentation (README.md on git) when you get a time.

Furthermore, I have added Event simulator REST API endpoints to the doc
that you shared earlier. After getting debugger to work, try to wrap event
simulator endpoints as well. You can refer to [1] for the documentation on
them.

[1] https://docs.wso2.com/display/DAS400/Simulating+Events

Regards,
Grainier.

On Sun, May 21, 2017 at 6:00 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I started working on the native wrapper. So far, have the very basic
> functionality working for Siddhi 3.1 and Siddhi 4.0.
> I am maintaining my code at the repo [1].
>
> Next step is getting the Siddhi debugger working. I will let you know when
> it is done.
>
> [1] - https://github.com/madhawav/SiddhiCEPPythonAPI
>
> Thanks,
> Madhawa
>
>
> On Fri, May 19, 2017 at 12:47 PM, Sriskandarajah Suhothayan  > wrote:
>
>> Sure we'll look into that.
>>
>> As the immediate next step can you make finish the work on native Siddhi
>> working with python.
>> Make sure Siddhi debugger also works.
>>
>> Regards
>> Suho
>>
>> On Fri, May 19, 2017 at 11:45 AM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have updated the shared doc [1] by adding "List of Admin Services to
>>> be used for DAS 3.1". Feel free to add-in your suggestions as well.
>>>
>>> Also, are their any documentation available on specific Admin Services
>>> APIs I have mentioned in doc? Such as a Reference Guide describing the
>>> methods and parameters of individual Admin Services APIs. I am already
>>> aware of the general documentation on Admin Services available at [2]
>>>
>>> [1] - https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
>>> 2JHh9RJya2VdHlHOTl4/edit?usp=sharing
>>> [2] - https://docs.wso2.com/display/DAS310/Calling+Admin+Services+
>>> from+Apps
>>>
>>> Thanks,
>>> Madhawa
>>>
>>> On Tue, May 9, 2017 at 11:11 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 +1 for the approach.
 We will add the classes

 On Tue, May 9, 2017 at 12:05 AM Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I will look into REST side also then. Already found good APIs to work
> with Native Calls and SOAP.
>
> I am also trying to come up with a list of classes of Siddhi Java
> Library that should be exposed via Python API.  I don't think its required
> to wrap the internal classes since their functionality is not directly 
> used
> by Siddhi Java Library users.
>
> I will update the list of classes to be wrapped at link below. Feel
> free to add in your suggestions as well.
> https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
> 2JHh9RJya2VdHlHOTl4/edit?usp=sharing
>
> Thanks and Regards,
> Madhawa
>
>
> On Sun, May 7, 2017 at 11:26 PM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> Siddhi 3.x is compatible with DAS 3.1, and Siddhi 4.x is
>> compatible with DAS 4.0 which we are still working on.
>>
>> Siddhi APIs does not drastically change from 3.x to 4.x,
>> DAS 3.1 uses SOAP and DAS 4.0 uses HTTP/REST APIs
>>
>> So apart from native APIs, if you have figured out a way to use REST
>> and SOAP we are good enough.
>>
>> Regards
>> Suho
>>
>> On Sun, May 7, 2017 at 12:00 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>> Need bit more clarity on what versions of products we should build
>>> on.
>>>
>>> Are we developing on DAS 3.1 (as mentioned in beginning of mail
>>> thread) or 4.0 (mentioned in previous mail) ?
>>> Also, what version of WSO2 CEP?
>>>
>>> According to my understanding so far, we are developing on Siddhi
>>> Java Library 4.0.
>>>
>>> Thanks and Regards,
>>> Madhawa
>>>
>>> On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>


 On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> @Mohan on DAS 4.0 do we have similar services like admin services
> at the worker?
>
> Shall we come up with the exact list of apis that we need to have
> ? So he can also incorporate them.
>

 Yes, I have already listed some apis in [1].. Will get the
 finalized list soon and share with Madhawa..

 [1] https://docs.google.com/spreadsheets/d/1m0sh4DLABCFzCBmj
 EXtVTrRGM0Mc6lvyYQP6rI99zhQ/edit#gid=0

 Thanks,
 Mohan


>
> Regards
> Suho
>
> On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-21 Thread Madhawa Vidanapathirana
Hi,

I started working on the native wrapper. So far, have the very basic
functionality working for Siddhi 3.1 and Siddhi 4.0.
I am maintaining my code at the repo [1].

Next step is getting the Siddhi debugger working. I will let you know when
it is done.

[1] - https://github.com/madhawav/SiddhiCEPPythonAPI

Thanks,
Madhawa


On Fri, May 19, 2017 at 12:47 PM, Sriskandarajah Suhothayan 
wrote:

> Sure we'll look into that.
>
> As the immediate next step can you make finish the work on native Siddhi
> working with python.
> Make sure Siddhi debugger also works.
>
> Regards
> Suho
>
> On Fri, May 19, 2017 at 11:45 AM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>>
>> I have updated the shared doc [1] by adding "List of Admin Services to be
>> used for DAS 3.1". Feel free to add-in your suggestions as well.
>>
>> Also, are their any documentation available on specific Admin Services
>> APIs I have mentioned in doc? Such as a Reference Guide describing the
>> methods and parameters of individual Admin Services APIs. I am already
>> aware of the general documentation on Admin Services available at [2]
>>
>> [1] - https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
>> 2JHh9RJya2VdHlHOTl4/edit?usp=sharing
>> [2] - https://docs.wso2.com/display/DAS310/Calling+Admin+Services+
>> from+Apps
>>
>> Thanks,
>> Madhawa
>>
>> On Tue, May 9, 2017 at 11:11 AM, Sriskandarajah Suhothayan > > wrote:
>>
>>> +1 for the approach.
>>> We will add the classes
>>>
>>> On Tue, May 9, 2017 at 12:05 AM Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,

 I will look into REST side also then. Already found good APIs to work
 with Native Calls and SOAP.

 I am also trying to come up with a list of classes of Siddhi Java
 Library that should be exposed via Python API.  I don't think its required
 to wrap the internal classes since their functionality is not directly used
 by Siddhi Java Library users.

 I will update the list of classes to be wrapped at link below. Feel
 free to add in your suggestions as well.
 https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
 2JHh9RJya2VdHlHOTl4/edit?usp=sharing

 Thanks and Regards,
 Madhawa


 On Sun, May 7, 2017 at 11:26 PM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> Siddhi 3.x is compatible with DAS 3.1, and Siddhi 4.x is
> compatible with DAS 4.0 which we are still working on.
>
> Siddhi APIs does not drastically change from 3.x to 4.x,
> DAS 3.1 uses SOAP and DAS 4.0 uses HTTP/REST APIs
>
> So apart from native APIs, if you have figured out a way to use REST
> and SOAP we are good enough.
>
> Regards
> Suho
>
> On Sun, May 7, 2017 at 12:00 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>> Need bit more clarity on what versions of products we should build
>> on.
>>
>> Are we developing on DAS 3.1 (as mentioned in beginning of mail
>> thread) or 4.0 (mentioned in previous mail) ?
>> Also, what version of WSO2 CEP?
>>
>> According to my understanding so far, we are developing on Siddhi
>> Java Library 4.0.
>>
>> Thanks and Regards,
>> Madhawa
>>
>> On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>>
>>>
>>> On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 @Mohan on DAS 4.0 do we have similar services like admin services
 at the worker?

 Shall we come up with the exact list of apis that we need to have ?
 So he can also incorporate them.

>>>
>>> Yes, I have already listed some apis in [1].. Will get the finalized
>>> list soon and share with Madhawa..
>>>
>>> [1] https://docs.google.com/spreadsheets/d/1m0sh4DLABCFzCBmj
>>> EXtVTrRGM0Mc6lvyYQP6rI99zhQ/edit#gid=0
>>>
>>> Thanks,
>>> Mohan
>>>
>>>

 Regards
 Suho

 On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
 mo...@wso2.com> wrote:

> [Adding other project mentors]
>
> On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>> Thank you for accepting my proposal for Project "Python API for
>> Siddhi CEP" in GSoC.
>>
>> The original proposal submitted by myself is available at [1].
>>
>> Progress made so far is as follows.
>>
>>1. Figured out a good technique to access JAVA APIs from
>>Python via Native Calls.
>>- Pyjnius Framework supports both method calls and callbacks
>>   between Python and Java.
>>2. Has wrapped the basi

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-19 Thread Sriskandarajah Suhothayan
Sure we'll look into that.

As the immediate next step can you make finish the work on native Siddhi
working with python.
Make sure Siddhi debugger also works.

Regards
Suho

On Fri, May 19, 2017 at 11:45 AM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I have updated the shared doc [1] by adding "List of Admin Services to be
> used for DAS 3.1". Feel free to add-in your suggestions as well.
>
> Also, are their any documentation available on specific Admin Services
> APIs I have mentioned in doc? Such as a Reference Guide describing the
> methods and parameters of individual Admin Services APIs. I am already
> aware of the general documentation on Admin Services available at [2]
>
> [1] - https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt2JHh9
> RJya2VdHlHOTl4/edit?usp=sharing
> [2] - https://docs.wso2.com/display/DAS310/Calling+Admin+Services+
> from+Apps
>
> Thanks,
> Madhawa
>
> On Tue, May 9, 2017 at 11:11 AM, Sriskandarajah Suhothayan 
> wrote:
>
>> +1 for the approach.
>> We will add the classes
>>
>> On Tue, May 9, 2017 at 12:05 AM Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I will look into REST side also then. Already found good APIs to work
>>> with Native Calls and SOAP.
>>>
>>> I am also trying to come up with a list of classes of Siddhi Java
>>> Library that should be exposed via Python API.  I don't think its required
>>> to wrap the internal classes since their functionality is not directly used
>>> by Siddhi Java Library users.
>>>
>>> I will update the list of classes to be wrapped at link below. Feel free
>>> to add in your suggestions as well.
>>> https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
>>> 2JHh9RJya2VdHlHOTl4/edit?usp=sharing
>>>
>>> Thanks and Regards,
>>> Madhawa
>>>
>>>
>>> On Sun, May 7, 2017 at 11:26 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 Siddhi 3.x is compatible with DAS 3.1, and Siddhi 4.x is
 compatible with DAS 4.0 which we are still working on.

 Siddhi APIs does not drastically change from 3.x to 4.x,
 DAS 3.1 uses SOAP and DAS 4.0 uses HTTP/REST APIs

 So apart from native APIs, if you have figured out a way to use REST
 and SOAP we are good enough.

 Regards
 Suho

 On Sun, May 7, 2017 at 12:00 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
> Need bit more clarity on what versions of products we should build on.
>
> Are we developing on DAS 3.1 (as mentioned in beginning of mail
> thread) or 4.0 (mentioned in previous mail) ?
> Also, what version of WSO2 CEP?
>
> According to my understanding so far, we are developing on Siddhi Java
> Library 4.0.
>
> Thanks and Regards,
> Madhawa
>
> On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>>
>>
>> On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> @Mohan on DAS 4.0 do we have similar services like admin services at
>>> the worker?
>>>
>>> Shall we come up with the exact list of apis that we need to have ?
>>> So he can also incorporate them.
>>>
>>
>> Yes, I have already listed some apis in [1].. Will get the finalized
>> list soon and share with Madhawa..
>>
>> [1] https://docs.google.com/spreadsheets/d/1m0sh4DLABCFzCBmj
>> EXtVTrRGM0Mc6lvyYQP6rI99zhQ/edit#gid=0
>>
>> Thanks,
>> Mohan
>>
>>
>>>
>>> Regards
>>> Suho
>>>
>>> On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
 [Adding other project mentors]

 On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
> Thank you for accepting my proposal for Project "Python API for
> Siddhi CEP" in GSoC.
>
> The original proposal submitted by myself is available at [1].
>
> Progress made so far is as follows.
>
>1. Figured out a good technique to access JAVA APIs from
>Python via Native Calls.
>- Pyjnius Framework supports both method calls and callbacks
>   between Python and Java.
>2. Has wrapped the basic functionality of Siddhi CEP Java
>Library using Python in prototype implementations [2].
>3. Currently in the process of figuring out a good method to
>communicate with Admin Services from Python.
>   - Zeep API [3] seems to be a good solution. It supports SSL
>   as well. I have already managed to authenticate and invoke some 
> methods of
>   WSO2 DAS through this API.
>
> During the community bonding period, my plan is to gain more
> clarit

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-18 Thread Madhawa Vidanapathirana
Hi,

I have updated the shared doc [1] by adding "List of Admin Services to be
used for DAS 3.1". Feel free to add-in your suggestions as well.

Also, are their any documentation available on specific Admin Services APIs
I have mentioned in doc? Such as a Reference Guide describing the methods
and parameters of individual Admin Services APIs. I am already aware of the
general documentation on Admin Services available at [2]

[1] -
https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt2JHh9RJya2VdHlHOTl4/edit?usp=sharing
[2] - https://docs.wso2.com/display/DAS310/Calling+Admin+Services+from+Apps

Thanks,
Madhawa

On Tue, May 9, 2017 at 11:11 AM, Sriskandarajah Suhothayan 
wrote:

> +1 for the approach.
> We will add the classes
>
> On Tue, May 9, 2017 at 12:05 AM Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>>
>> I will look into REST side also then. Already found good APIs to work
>> with Native Calls and SOAP.
>>
>> I am also trying to come up with a list of classes of Siddhi Java Library
>> that should be exposed via Python API.  I don't think its required to wrap
>> the internal classes since their functionality is not directly used by
>> Siddhi Java Library users.
>>
>> I will update the list of classes to be wrapped at link below. Feel free
>> to add in your suggestions as well.
>> https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt2JHh9
>> RJya2VdHlHOTl4/edit?usp=sharing
>>
>> Thanks and Regards,
>> Madhawa
>>
>>
>> On Sun, May 7, 2017 at 11:26 PM, Sriskandarajah Suhothayan > > wrote:
>>
>>> Siddhi 3.x is compatible with DAS 3.1, and Siddhi 4.x is compatible with
>>> DAS 4.0 which we are still working on.
>>>
>>> Siddhi APIs does not drastically change from 3.x to 4.x,
>>> DAS 3.1 uses SOAP and DAS 4.0 uses HTTP/REST APIs
>>>
>>> So apart from native APIs, if you have figured out a way to use REST and
>>> SOAP we are good enough.
>>>
>>> Regards
>>> Suho
>>>
>>> On Sun, May 7, 2017 at 12:00 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,
 Need bit more clarity on what versions of products we should build on.

 Are we developing on DAS 3.1 (as mentioned in beginning of mail thread)
 or 4.0 (mentioned in previous mail) ?
 Also, what version of WSO2 CEP?

 According to my understanding so far, we are developing on Siddhi Java
 Library 4.0.

 Thanks and Regards,
 Madhawa

 On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
 mo...@wso2.com> wrote:

>
>
> On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> @Mohan on DAS 4.0 do we have similar services like admin services at
>> the worker?
>>
>> Shall we come up with the exact list of apis that we need to have ?
>> So he can also incorporate them.
>>
>
> Yes, I have already listed some apis in [1].. Will get the finalized
> list soon and share with Madhawa..
>
> [1] https://docs.google.com/spreadsheets/d/
> 1m0sh4DLABCFzCBmjEXtVTrRGM0Mc6lvyYQP6rI99zhQ/edit#gid=0
>
> Thanks,
> Mohan
>
>
>>
>> Regards
>> Suho
>>
>> On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>> [Adding other project mentors]
>>>
>>> On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,
 Thank you for accepting my proposal for Project "Python API for
 Siddhi CEP" in GSoC.

 The original proposal submitted by myself is available at [1].

 Progress made so far is as follows.

1. Figured out a good technique to access JAVA APIs from Python
via Native Calls.
- Pyjnius Framework supports both method calls and callbacks
   between Python and Java.
2. Has wrapped the basic functionality of Siddhi CEP Java
Library using Python in prototype implementations [2].
3. Currently in the process of figuring out a good method to
communicate with Admin Services from Python.
   - Zeep API [3] seems to be a good solution. It supports SSL
   as well. I have already managed to authenticate and invoke some 
 methods of
   WSO2 DAS through this API.

 During the community bonding period, my plan is to gain more
 clarity on expected architecture of the system such as what sort of a
 public interface would be suitable for the Python API. I also hope to 
 learn
 more on Admin Services Interface of WSO2 DAS.

 Would you like to see any changes in the proposal? Shall I proceed
 as per the plan their?

 [1] - https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc/
 view?usp=sharing

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-08 Thread Sriskandarajah Suhothayan
+1 for the approach.
We will add the classes

On Tue, May 9, 2017 at 12:05 AM Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I will look into REST side also then. Already found good APIs to work with
> Native Calls and SOAP.
>
> I am also trying to come up with a list of classes of Siddhi Java Library
> that should be exposed via Python API.  I don't think its required to wrap
> the internal classes since their functionality is not directly used by
> Siddhi Java Library users.
>
> I will update the list of classes to be wrapped at link below. Feel free
> to add in your suggestions as well.
>
> https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt2JHh9RJya2VdHlHOTl4/edit?usp=sharing
>
> Thanks and Regards,
> Madhawa
>
>
> On Sun, May 7, 2017 at 11:26 PM, Sriskandarajah Suhothayan 
> wrote:
>
>> Siddhi 3.x is compatible with DAS 3.1, and Siddhi 4.x is compatible with
>> DAS 4.0 which we are still working on.
>>
>> Siddhi APIs does not drastically change from 3.x to 4.x,
>> DAS 3.1 uses SOAP and DAS 4.0 uses HTTP/REST APIs
>>
>> So apart from native APIs, if you have figured out a way to use REST and
>> SOAP we are good enough.
>>
>> Regards
>> Suho
>>
>> On Sun, May 7, 2017 at 12:00 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>> Need bit more clarity on what versions of products we should build on.
>>>
>>> Are we developing on DAS 3.1 (as mentioned in beginning of mail thread)
>>> or 4.0 (mentioned in previous mail) ?
>>> Also, what version of WSO2 CEP?
>>>
>>> According to my understanding so far, we are developing on Siddhi Java
>>> Library 4.0.
>>>
>>> Thanks and Regards,
>>> Madhawa
>>>
>>> On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>


 On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> @Mohan on DAS 4.0 do we have similar services like admin services at
> the worker?
>
> Shall we come up with the exact list of apis that we need to have ? So
> he can also incorporate them.
>

 Yes, I have already listed some apis in [1].. Will get the finalized
 list soon and share with Madhawa..

 [1]
 https://docs.google.com/spreadsheets/d/1m0sh4DLABCFzCBmjEXtVTrRGM0Mc6lvyYQP6rI99zhQ/edit#gid=0

 Thanks,
 Mohan


>
> Regards
> Suho
>
> On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> [Adding other project mentors]
>>
>> On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>> Thank you for accepting my proposal for Project "Python API for
>>> Siddhi CEP" in GSoC.
>>>
>>> The original proposal submitted by myself is available at [1].
>>>
>>> Progress made so far is as follows.
>>>
>>>1. Figured out a good technique to access JAVA APIs from Python
>>>via Native Calls.
>>>- Pyjnius Framework supports both method calls and callbacks
>>>   between Python and Java.
>>>2. Has wrapped the basic functionality of Siddhi CEP Java
>>>Library using Python in prototype implementations [2].
>>>3. Currently in the process of figuring out a good method to
>>>communicate with Admin Services from Python.
>>>   - Zeep API [3] seems to be a good solution. It supports SSL
>>>   as well. I have already managed to authenticate and invoke some 
>>> methods of
>>>   WSO2 DAS through this API.
>>>
>>> During the community bonding period, my plan is to gain more clarity
>>> on expected architecture of the system such as what sort of a public
>>> interface would be suitable for the Python API. I also hope to learn 
>>> more
>>> on Admin Services Interface of WSO2 DAS.
>>>
>>> Would you like to see any changes in the proposal? Shall I proceed
>>> as per the plan their?
>>>
>>> [1] -
>>> https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc/view?usp=sharing
>>> [2] -
>>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyjnius_Prototype_Wrap_Python2_3
>>> [3] - http://docs.python-zeep.org/en/master/
>>>
>>> Thanks and Regards,
>>>
>>> Madhawa
>>>
>>> On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 Great

 Suho

 On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> I have submitted the final proposal through GSoC Dashboard. Thank
> you for all the support given.
>
> Looking forward for a great GSoC with WSO2.
>
> Regards,
> Madhawa
>
>
> On Monday, March 27, 2017, Mad

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-08 Thread Madhawa Vidanapathirana
Hi,

I will look into REST side also then. Already found good APIs to work with
Native Calls and SOAP.

I am also trying to come up with a list of classes of Siddhi Java Library
that should be exposed via Python API.  I don't think its required to wrap
the internal classes since their functionality is not directly used by
Siddhi Java Library users.

I will update the list of classes to be wrapped at link below. Feel free to
add in your suggestions as well.
https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt2JHh9RJya2VdHlHOTl4/edit?usp=sharing

Thanks and Regards,
Madhawa


On Sun, May 7, 2017 at 11:26 PM, Sriskandarajah Suhothayan 
wrote:

> Siddhi 3.x is compatible with DAS 3.1, and Siddhi 4.x is compatible with
> DAS 4.0 which we are still working on.
>
> Siddhi APIs does not drastically change from 3.x to 4.x,
> DAS 3.1 uses SOAP and DAS 4.0 uses HTTP/REST APIs
>
> So apart from native APIs, if you have figured out a way to use REST and
> SOAP we are good enough.
>
> Regards
> Suho
>
> On Sun, May 7, 2017 at 12:00 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>> Need bit more clarity on what versions of products we should build on.
>>
>> Are we developing on DAS 3.1 (as mentioned in beginning of mail thread)
>> or 4.0 (mentioned in previous mail) ?
>> Also, what version of WSO2 CEP?
>>
>> According to my understanding so far, we are developing on Siddhi Java
>> Library 4.0.
>>
>> Thanks and Regards,
>> Madhawa
>>
>> On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>>
>>>
>>> On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan >> > wrote:
>>>
 @Mohan on DAS 4.0 do we have similar services like admin services at
 the worker?

 Shall we come up with the exact list of apis that we need to have ? So
 he can also incorporate them.

>>>
>>> Yes, I have already listed some apis in [1].. Will get the finalized
>>> list soon and share with Madhawa..
>>>
>>> [1] https://docs.google.com/spreadsheets/d/1m0sh4DLABCFzCBmj
>>> EXtVTrRGM0Mc6lvyYQP6rI99zhQ/edit#gid=0
>>>
>>> Thanks,
>>> Mohan
>>>
>>>

 Regards
 Suho

 On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
 mo...@wso2.com> wrote:

> [Adding other project mentors]
>
> On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>> Thank you for accepting my proposal for Project "Python API for
>> Siddhi CEP" in GSoC.
>>
>> The original proposal submitted by myself is available at [1].
>>
>> Progress made so far is as follows.
>>
>>1. Figured out a good technique to access JAVA APIs from Python
>>via Native Calls.
>>- Pyjnius Framework supports both method calls and callbacks
>>   between Python and Java.
>>2. Has wrapped the basic functionality of Siddhi CEP Java Library
>>using Python in prototype implementations [2].
>>3. Currently in the process of figuring out a good method to
>>communicate with Admin Services from Python.
>>   - Zeep API [3] seems to be a good solution. It supports SSL as
>>   well. I have already managed to authenticate and invoke some 
>> methods of
>>   WSO2 DAS through this API.
>>
>> During the community bonding period, my plan is to gain more clarity
>> on expected architecture of the system such as what sort of a public
>> interface would be suitable for the Python API. I also hope to learn more
>> on Admin Services Interface of WSO2 DAS.
>>
>> Would you like to see any changes in the proposal? Shall I proceed as
>> per the plan their?
>>
>> [1] - https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc
>> /view?usp=sharing
>> [2] - https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>> nius_Prototype_Wrap_Python2_3
>> [3] - http://docs.python-zeep.org/en/master/
>>
>> Thanks and Regards,
>>
>> Madhawa
>>
>> On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> Great
>>>
>>> Suho
>>>
>>> On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 I have submitted the final proposal through GSoC Dashboard. Thank
 you for all the support given.

 Looking forward for a great GSoC with WSO2.

 Regards,
 Madhawa


 On Monday, March 27, 2017, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I have shared the finalized draft proposal via the Google Summer
> of Code Web Portal. Kindly let me know if any changes are required.
> Hoping to submit the final proposal with changes based on your

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-07 Thread Sriskandarajah Suhothayan
Siddhi 3.x is compatible with DAS 3.1, and Siddhi 4.x is compatible with
DAS 4.0 which we are still working on.

Siddhi APIs does not drastically change from 3.x to 4.x,
DAS 3.1 uses SOAP and DAS 4.0 uses HTTP/REST APIs

So apart from native APIs, if you have figured out a way to use REST and
SOAP we are good enough.

Regards
Suho

On Sun, May 7, 2017 at 12:00 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
> Need bit more clarity on what versions of products we should build on.
>
> Are we developing on DAS 3.1 (as mentioned in beginning of mail thread) or
> 4.0 (mentioned in previous mail) ?
> Also, what version of WSO2 CEP?
>
> According to my understanding so far, we are developing on Siddhi Java
> Library 4.0.
>
> Thanks and Regards,
> Madhawa
>
> On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>>
>>
>> On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan 
>> wrote:
>>
>>> @Mohan on DAS 4.0 do we have similar services like admin services at the
>>> worker?
>>>
>>> Shall we come up with the exact list of apis that we need to have ? So
>>> he can also incorporate them.
>>>
>>
>> Yes, I have already listed some apis in [1].. Will get the finalized list
>> soon and share with Madhawa..
>>
>> [1] https://docs.google.com/spreadsheets/d/1m0sh4DLABCFzCBmj
>> EXtVTrRGM0Mc6lvyYQP6rI99zhQ/edit#gid=0
>>
>> Thanks,
>> Mohan
>>
>>
>>>
>>> Regards
>>> Suho
>>>
>>> On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
 [Adding other project mentors]

 On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
> Thank you for accepting my proposal for Project "Python API for Siddhi
> CEP" in GSoC.
>
> The original proposal submitted by myself is available at [1].
>
> Progress made so far is as follows.
>
>1. Figured out a good technique to access JAVA APIs from Python
>via Native Calls.
>- Pyjnius Framework supports both method calls and callbacks
>   between Python and Java.
>2. Has wrapped the basic functionality of Siddhi CEP Java Library
>using Python in prototype implementations [2].
>3. Currently in the process of figuring out a good method to
>communicate with Admin Services from Python.
>   - Zeep API [3] seems to be a good solution. It supports SSL as
>   well. I have already managed to authenticate and invoke some 
> methods of
>   WSO2 DAS through this API.
>
> During the community bonding period, my plan is to gain more clarity
> on expected architecture of the system such as what sort of a public
> interface would be suitable for the Python API. I also hope to learn more
> on Admin Services Interface of WSO2 DAS.
>
> Would you like to see any changes in the proposal? Shall I proceed as
> per the plan their?
>
> [1] - https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc
> /view?usp=sharing
> [2] - https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
> nius_Prototype_Wrap_Python2_3
> [3] - http://docs.python-zeep.org/en/master/
>
> Thanks and Regards,
>
> Madhawa
>
> On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> Great
>>
>> Suho
>>
>> On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> I have submitted the final proposal through GSoC Dashboard. Thank
>>> you for all the support given.
>>>
>>> Looking forward for a great GSoC with WSO2.
>>>
>>> Regards,
>>> Madhawa
>>>
>>>
>>> On Monday, March 27, 2017, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,

 I have shared the finalized draft proposal via the Google Summer of
 Code Web Portal. Kindly let me know if any changes are required.
 Hoping to submit the final proposal with changes based on your
 feedback.

 Regards,
 Madhawa


 On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> Good news.
>
> Requested a release from Pyjnius Developer Team [1] and managed to
> get a new release [2] to Python Package Index (PIP). Therefore, we no
> longer have to develop their library from GitHub code.
> We can simply consider it as a dependency which gets auto
> installed when our final product is deployed.
>
> [1] - https://github.com/kivy/pyjnius/issues/189#issuecomment-2887
> 50222
> [2] - https://pypi.python.org/pypi/pyjnius/1.1.1
>
> Pyjnius 

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-06 Thread Madhawa Vidanapathirana
Hi,
Need bit more clarity on what versions of products we should build on.

Are we developing on DAS 3.1 (as mentioned in beginning of mail thread) or
4.0 (mentioned in previous mail) ?
Also, what version of WSO2 CEP?

According to my understanding so far, we are developing on Siddhi Java
Library 4.0.

Thanks and Regards,
Madhawa

On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan 
> wrote:
>
>> @Mohan on DAS 4.0 do we have similar services like admin services at the
>> worker?
>>
>> Shall we come up with the exact list of apis that we need to have ? So he
>> can also incorporate them.
>>
>
> Yes, I have already listed some apis in [1].. Will get the finalized list
> soon and share with Madhawa..
>
> [1] https://docs.google.com/spreadsheets/d/1m0sh4DLABCFzCBmjEXtVTrRGM0Mc6
> lvyYQP6rI99zhQ/edit#gid=0
>
> Thanks,
> Mohan
>
>
>>
>> Regards
>> Suho
>>
>> On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>> [Adding other project mentors]
>>>
>>> On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,
 Thank you for accepting my proposal for Project "Python API for Siddhi
 CEP" in GSoC.

 The original proposal submitted by myself is available at [1].

 Progress made so far is as follows.

1. Figured out a good technique to access JAVA APIs from Python via
Native Calls.
- Pyjnius Framework supports both method calls and callbacks
   between Python and Java.
2. Has wrapped the basic functionality of Siddhi CEP Java Library
using Python in prototype implementations [2].
3. Currently in the process of figuring out a good method to
communicate with Admin Services from Python.
   - Zeep API [3] seems to be a good solution. It supports SSL as
   well. I have already managed to authenticate and invoke some methods 
 of
   WSO2 DAS through this API.

 During the community bonding period, my plan is to gain more clarity on
 expected architecture of the system such as what sort of a public interface
 would be suitable for the Python API. I also hope to learn more on Admin
 Services Interface of WSO2 DAS.

 Would you like to see any changes in the proposal? Shall I proceed as
 per the plan their?

 [1] - https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc
 /view?usp=sharing
 [2] - https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
 nius_Prototype_Wrap_Python2_3
 [3] - http://docs.python-zeep.org/en/master/

 Thanks and Regards,

 Madhawa

 On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> Great
>
> Suho
>
> On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> I have submitted the final proposal through GSoC Dashboard. Thank you
>> for all the support given.
>>
>> Looking forward for a great GSoC with WSO2.
>>
>> Regards,
>> Madhawa
>>
>>
>> On Monday, March 27, 2017, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have shared the finalized draft proposal via the Google Summer of
>>> Code Web Portal. Kindly let me know if any changes are required.
>>> Hoping to submit the final proposal with changes based on your
>>> feedback.
>>>
>>> Regards,
>>> Madhawa
>>>
>>>
>>> On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,

 Good news.

 Requested a release from Pyjnius Developer Team [1] and managed to
 get a new release [2] to Python Package Index (PIP). Therefore, we no
 longer have to develop their library from GitHub code.
 We can simply consider it as a dependency which gets auto installed
 when our final product is deployed.

 [1] - https://github.com/kivy/pyjnius/issues/189#issuecomment-
 288750222
 [2] - https://pypi.python.org/pypi/pyjnius/1.1.1

 Pyjnius is a library which can be used for calling Java methods
 from Python and obtaining callback responses. It uses native method 
 calls.

 Regards,
 Madhawa

 On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> Good to know that it worked :)
>
> Regards
> Suho
>
> On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> Got the 

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-06 Thread Mohanadarshan Vivekanandalingam
On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan 
wrote:

> @Mohan on DAS 4.0 do we have similar services like admin services at the
> worker?
>
> Shall we come up with the exact list of apis that we need to have ? So he
> can also incorporate them.
>

Yes, I have already listed some apis in [1].. Will get the finalized list
soon and share with Madhawa..

[1]
https://docs.google.com/spreadsheets/d/1m0sh4DLABCFzCBmjEXtVTrRGM0Mc6lvyYQP6rI99zhQ/edit#gid=0

Thanks,
Mohan


>
> Regards
> Suho
>
> On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> [Adding other project mentors]
>>
>> On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>> Thank you for accepting my proposal for Project "Python API for Siddhi
>>> CEP" in GSoC.
>>>
>>> The original proposal submitted by myself is available at [1].
>>>
>>> Progress made so far is as follows.
>>>
>>>1. Figured out a good technique to access JAVA APIs from Python via
>>>Native Calls.
>>>- Pyjnius Framework supports both method calls and callbacks between
>>>   Python and Java.
>>>2. Has wrapped the basic functionality of Siddhi CEP Java Library
>>>using Python in prototype implementations [2].
>>>3. Currently in the process of figuring out a good method to
>>>communicate with Admin Services from Python.
>>>   - Zeep API [3] seems to be a good solution. It supports SSL as
>>>   well. I have already managed to authenticate and invoke some methods 
>>> of
>>>   WSO2 DAS through this API.
>>>
>>> During the community bonding period, my plan is to gain more clarity on
>>> expected architecture of the system such as what sort of a public interface
>>> would be suitable for the Python API. I also hope to learn more on Admin
>>> Services Interface of WSO2 DAS.
>>>
>>> Would you like to see any changes in the proposal? Shall I proceed as
>>> per the plan their?
>>>
>>> [1] - https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc/
>>> view?usp=sharing
>>> [2] - https://github.com/madhawav/CEP-Python-Wraps/tree/master/
>>> Pyjnius_Prototype_Wrap_Python2_3
>>> [3] - http://docs.python-zeep.org/en/master/
>>>
>>> Thanks and Regards,
>>>
>>> Madhawa
>>>
>>> On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan >> > wrote:
>>>
 Great

 Suho

 On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> I have submitted the final proposal through GSoC Dashboard. Thank you
> for all the support given.
>
> Looking forward for a great GSoC with WSO2.
>
> Regards,
> Madhawa
>
>
> On Monday, March 27, 2017, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>>
>> I have shared the finalized draft proposal via the Google Summer of
>> Code Web Portal. Kindly let me know if any changes are required.
>> Hoping to submit the final proposal with changes based on your
>> feedback.
>>
>> Regards,
>> Madhawa
>>
>>
>> On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Good news.
>>>
>>> Requested a release from Pyjnius Developer Team [1] and managed to
>>> get a new release [2] to Python Package Index (PIP). Therefore, we no
>>> longer have to develop their library from GitHub code.
>>> We can simply consider it as a dependency which gets auto installed
>>> when our final product is deployed.
>>>
>>> [1] - https://github.com/kivy/pyjnius/issues/189#
>>> issuecomment-288750222
>>> [2] - https://pypi.python.org/pypi/pyjnius/1.1.1
>>>
>>> Pyjnius is a library which can be used for calling Java methods from
>>> Python and obtaining callback responses. It uses native method calls.
>>>
>>> Regards,
>>> Madhawa
>>>
>>> On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 Good to know that it worked :)

 Regards
 Suho

 On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Got the prototype working with Python 3 as well. Refer the link
> below for sources.
>
> https://github.com/madhawav/CEP-Python-Wraps/tree/master/
> Pyjnius_Prototype_Wrap_Python2_3
>
> This version works with both Python 2.7 and 3.x. (Tested on 2.7
> and 3.5). Uses native calls via Pyjnius API.
>
> Please note: When you are installing Pyjnius from source, don't
> use the same local copy of source files for both Python2 and Python3. 
> The
> install scripts of Pyjnius leaves temporary files that make subsequent

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-05 Thread Sriskandarajah Suhothayan
@Mohan on DAS 4.0 do we have similar services like admin services at the
worker?

Shall we come up with the exact list of apis that we need to have ? So he
can also incorporate them.

Regards
Suho

On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> [Adding other project mentors]
>
> On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>> Thank you for accepting my proposal for Project "Python API for Siddhi
>> CEP" in GSoC.
>>
>> The original proposal submitted by myself is available at [1].
>>
>> Progress made so far is as follows.
>>
>>1. Figured out a good technique to access JAVA APIs from Python via
>>Native Calls.
>>- Pyjnius Framework supports both method calls and callbacks between
>>   Python and Java.
>>2. Has wrapped the basic functionality of Siddhi CEP Java Library
>>using Python in prototype implementations [2].
>>3. Currently in the process of figuring out a good method to
>>communicate with Admin Services from Python.
>>   - Zeep API [3] seems to be a good solution. It supports SSL as
>>   well. I have already managed to authenticate and invoke some methods of
>>   WSO2 DAS through this API.
>>
>> During the community bonding period, my plan is to gain more clarity on
>> expected architecture of the system such as what sort of a public interface
>> would be suitable for the Python API. I also hope to learn more on Admin
>> Services Interface of WSO2 DAS.
>>
>> Would you like to see any changes in the proposal? Shall I proceed as per
>> the plan their?
>>
>> [1] -
>> https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc/view?usp=sharing
>> [2] -
>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyjnius_Prototype_Wrap_Python2_3
>> [3] - http://docs.python-zeep.org/en/master/
>>
>> Thanks and Regards,
>>
>> Madhawa
>>
>> On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan 
>> wrote:
>>
>>> Great
>>>
>>> Suho
>>>
>>> On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 I have submitted the final proposal through GSoC Dashboard. Thank you
 for all the support given.

 Looking forward for a great GSoC with WSO2.

 Regards,
 Madhawa


 On Monday, March 27, 2017, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I have shared the finalized draft proposal via the Google Summer of
> Code Web Portal. Kindly let me know if any changes are required.
> Hoping to submit the final proposal with changes based on your
> feedback.
>
> Regards,
> Madhawa
>
>
> On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>>
>> Good news.
>>
>> Requested a release from Pyjnius Developer Team [1] and managed to
>> get a new release [2] to Python Package Index (PIP). Therefore, we no
>> longer have to develop their library from GitHub code.
>> We can simply consider it as a dependency which gets auto installed
>> when our final product is deployed.
>>
>> [1] -
>> https://github.com/kivy/pyjnius/issues/189#issuecomment-288750222
>> [2] - https://pypi.python.org/pypi/pyjnius/1.1.1
>>
>> Pyjnius is a library which can be used for calling Java methods from
>> Python and obtaining callback responses. It uses native method calls.
>>
>> Regards,
>> Madhawa
>>
>> On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> Good to know that it worked :)
>>>
>>> Regards
>>> Suho
>>>
>>> On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 Got the prototype working with Python 3 as well. Refer the link
 below for sources.


 https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyjnius_Prototype_Wrap_Python2_3

 This version works with both Python 2.7 and 3.x. (Tested on 2.7 and
 3.5). Uses native calls via Pyjnius API.

 Please note: When you are installing Pyjnius from source, don't use
 the same local copy of source files for both Python2 and Python3. The
 install scripts of Pyjnius leaves temporary files that make subsequent
 installs on a different version of Python fail.

 Regards,
 Madhawa


 On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Installation via PIP can be done. I will add it to Project
> Proposal.
>
> Regards,
> Madhawa
>
> On Mon, Mar 20, 2017 at 1

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-05 Thread Mohanadarshan Vivekanandalingam
[Adding other project mentors]

On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
> Thank you for accepting my proposal for Project "Python API for Siddhi
> CEP" in GSoC.
>
> The original proposal submitted by myself is available at [1].
>
> Progress made so far is as follows.
>
>1. Figured out a good technique to access JAVA APIs from Python via
>Native Calls.
>- Pyjnius Framework supports both method calls and callbacks between
>   Python and Java.
>2. Has wrapped the basic functionality of Siddhi CEP Java Library
>using Python in prototype implementations [2].
>3. Currently in the process of figuring out a good method to
>communicate with Admin Services from Python.
>   - Zeep API [3] seems to be a good solution. It supports SSL as
>   well. I have already managed to authenticate and invoke some methods of
>   WSO2 DAS through this API.
>
> During the community bonding period, my plan is to gain more clarity on
> expected architecture of the system such as what sort of a public interface
> would be suitable for the Python API. I also hope to learn more on Admin
> Services Interface of WSO2 DAS.
>
> Would you like to see any changes in the proposal? Shall I proceed as per
> the plan their?
>
> [1] - https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc
> /view?usp=sharing
> [2] - https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
> nius_Prototype_Wrap_Python2_3
> [3] - http://docs.python-zeep.org/en/master/
>
> Thanks and Regards,
>
> Madhawa
>
> On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan 
> wrote:
>
>> Great
>>
>> Suho
>>
>> On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> I have submitted the final proposal through GSoC Dashboard. Thank you
>>> for all the support given.
>>>
>>> Looking forward for a great GSoC with WSO2.
>>>
>>> Regards,
>>> Madhawa
>>>
>>>
>>> On Monday, March 27, 2017, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,

 I have shared the finalized draft proposal via the Google Summer of
 Code Web Portal. Kindly let me know if any changes are required.
 Hoping to submit the final proposal with changes based on your feedback.

 Regards,
 Madhawa


 On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> Good news.
>
> Requested a release from Pyjnius Developer Team [1] and managed to get
> a new release [2] to Python Package Index (PIP). Therefore, we no longer
> have to develop their library from GitHub code.
> We can simply consider it as a dependency which gets auto installed
> when our final product is deployed.
>
> [1] - https://github.com/kivy/pyjnius/issues/189#issuecomment-2887
> 50222
> [2] - https://pypi.python.org/pypi/pyjnius/1.1.1
>
> Pyjnius is a library which can be used for calling Java methods from
> Python and obtaining callback responses. It uses native method calls.
>
> Regards,
> Madhawa
>
> On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> Good to know that it worked :)
>>
>> Regards
>> Suho
>>
>> On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> Got the prototype working with Python 3 as well. Refer the link
>>> below for sources.
>>>
>>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>>> nius_Prototype_Wrap_Python2_3
>>>
>>> This version works with both Python 2.7 and 3.x. (Tested on 2.7 and
>>> 3.5). Uses native calls via Pyjnius API.
>>>
>>> Please note: When you are installing Pyjnius from source, don't use
>>> the same local copy of source files for both Python2 and Python3. The
>>> install scripts of Pyjnius leaves temporary files that make subsequent
>>> installs on a different version of Python fail.
>>>
>>> Regards,
>>> Madhawa
>>>
>>>
>>> On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 Installation via PIP can be done. I will add it to Project
 Proposal.

 Regards,
 Madhawa

 On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

>
>
> On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> Going ahead with the proposal, few questions crossed my mind.
>>
>>1. You mentioned previously that WSO2 DAS should also be
>>supporte

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-05 Thread Madhawa Vidanapathirana
Hi,
Thank you for accepting my proposal for Project "Python API for Siddhi CEP"
in GSoC.

The original proposal submitted by myself is available at [1].

Progress made so far is as follows.

   1. Figured out a good technique to access JAVA APIs from Python via
   Native Calls.
   - Pyjnius Framework supports both method calls and callbacks between
  Python and Java.
   2. Has wrapped the basic functionality of Siddhi CEP Java Library using
   Python in prototype implementations [2].
   3. Currently in the process of figuring out a good method to communicate
   with Admin Services from Python.
  - Zeep API [3] seems to be a good solution. It supports SSL as well.
  I have already managed to authenticate and invoke some methods
of WSO2 DAS
  through this API.

During the community bonding period, my plan is to gain more clarity on
expected architecture of the system such as what sort of a public interface
would be suitable for the Python API. I also hope to learn more on Admin
Services Interface of WSO2 DAS.

Would you like to see any changes in the proposal? Shall I proceed as per
the plan their?

[1] - https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc
/view?usp=sharing
[2] - https://github.com/madhawav/CEP-Python-Wraps/tree/master/
Pyjnius_Prototype_Wrap_Python2_3
[3] - http://docs.python-zeep.org/en/master/

Thanks and Regards,

Madhawa

On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan 
wrote:

> Great
>
> Suho
>
> On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> I have submitted the final proposal through GSoC Dashboard. Thank you for
>> all the support given.
>>
>> Looking forward for a great GSoC with WSO2.
>>
>> Regards,
>> Madhawa
>>
>>
>> On Monday, March 27, 2017, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have shared the finalized draft proposal via the Google Summer of Code
>>> Web Portal. Kindly let me know if any changes are required.
>>> Hoping to submit the final proposal with changes based on your feedback.
>>>
>>> Regards,
>>> Madhawa
>>>
>>>
>>> On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,

 Good news.

 Requested a release from Pyjnius Developer Team [1] and managed to get
 a new release [2] to Python Package Index (PIP). Therefore, we no longer
 have to develop their library from GitHub code.
 We can simply consider it as a dependency which gets auto installed
 when our final product is deployed.

 [1] - https://github.com/kivy/pyjnius/issues/189#issuecomment-288750222
 [2] - https://pypi.python.org/pypi/pyjnius/1.1.1

 Pyjnius is a library which can be used for calling Java methods from
 Python and obtaining callback responses. It uses native method calls.

 Regards,
 Madhawa

 On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> Good to know that it worked :)
>
> Regards
> Suho
>
> On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> Got the prototype working with Python 3 as well. Refer the link below
>> for sources.
>>
>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>> nius_Prototype_Wrap_Python2_3
>>
>> This version works with both Python 2.7 and 3.x. (Tested on 2.7 and
>> 3.5). Uses native calls via Pyjnius API.
>>
>> Please note: When you are installing Pyjnius from source, don't use
>> the same local copy of source files for both Python2 and Python3. The
>> install scripts of Pyjnius leaves temporary files that make subsequent
>> installs on a different version of Python fail.
>>
>> Regards,
>> Madhawa
>>
>>
>> On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> Installation via PIP can be done. I will add it to Project Proposal.
>>>
>>> Regards,
>>> Madhawa
>>>
>>> On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>


 On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Going ahead with the proposal, few questions crossed my mind.
>
>1. You mentioned previously that WSO2 DAS should also be
>supported. What sort of interactions are expected with WSO2 DAS?
>1. Should publishing events to WSO2 DAS from Python Siddhi API
>   supported?
>   2. Should deploying of Siddhi Queries to WSO2 DAS through
>   Python Siddhi API be supported?
>   3. Any other expectations?
>>>

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-04-04 Thread Sriskandarajah Suhothayan
Great

Suho

On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> I have submitted the final proposal through GSoC Dashboard. Thank you for
> all the support given.
>
> Looking forward for a great GSoC with WSO2.
>
> Regards,
> Madhawa
>
>
> On Monday, March 27, 2017, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>>
>> I have shared the finalized draft proposal via the Google Summer of Code
>> Web Portal. Kindly let me know if any changes are required.
>> Hoping to submit the final proposal with changes based on your feedback.
>>
>> Regards,
>> Madhawa
>>
>>
>> On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Good news.
>>>
>>> Requested a release from Pyjnius Developer Team [1] and managed to get a
>>> new release [2] to Python Package Index (PIP). Therefore, we no longer have
>>> to develop their library from GitHub code.
>>> We can simply consider it as a dependency which gets auto installed when
>>> our final product is deployed.
>>>
>>> [1] - https://github.com/kivy/pyjnius/issues/189#issuecomment-288750222
>>> [2] - https://pypi.python.org/pypi/pyjnius/1.1.1
>>>
>>> Pyjnius is a library which can be used for calling Java methods from
>>> Python and obtaining callback responses. It uses native method calls.
>>>
>>> Regards,
>>> Madhawa
>>>
>>> On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 Good to know that it worked :)

 Regards
 Suho

 On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Got the prototype working with Python 3 as well. Refer the link below
> for sources.
>
> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
> nius_Prototype_Wrap_Python2_3
>
> This version works with both Python 2.7 and 3.x. (Tested on 2.7 and
> 3.5). Uses native calls via Pyjnius API.
>
> Please note: When you are installing Pyjnius from source, don't use
> the same local copy of source files for both Python2 and Python3. The
> install scripts of Pyjnius leaves temporary files that make subsequent
> installs on a different version of Python fail.
>
> Regards,
> Madhawa
>
>
> On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> Installation via PIP can be done. I will add it to Project Proposal.
>>
>> Regards,
>> Madhawa
>>
>> On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>>
>>>
>>> On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 Going ahead with the proposal, few questions crossed my mind.

1. You mentioned previously that WSO2 DAS should also be
supported. What sort of interactions are expected with WSO2 DAS?
1. Should publishing events to WSO2 DAS from Python Siddhi API
   supported?
   2. Should deploying of Siddhi Queries to WSO2 DAS through
   Python Siddhi API be supported?
   3. Any other expectations?


>>> For the integration with DAS we can use HTTP calls and deploy Siddhi
>>> queries and send events to that, we should also start a server from the
>>> python side to receive events from DAS and print them.
>>>
>>> We can work on the details of that after the proposal.
>>>
>>> One more thing to add, can we also implement Siddhi (the project you
>>> will be creating) to be installed via pip ?
>>>
>>> Regards
>>> Suho
>>>
>>> If any of above can be considered as "optional", indicate them as
 well.

 Regards,
 Madhawa

 On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> For the initial cut this looks good, please go ahead with the
> proposal. Let's check some other alternatives and start the 
> development.
>
> Regards
> Suho
>
> On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> You can find the python version of test case written using
>> Pyjnius in below link.
>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>> nius%20Prototype%20Wrap
>> Instructions on building the code is also given their.
>>
>> During development, I noticed following disadvantages of Pyjnius
>> API
>>
>>- Not compatible with Python 3.x.
>>-

[Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-04-03 Thread Madhawa Vidanapathirana
Hi Suho,

I have submitted the final proposal through GSoC Dashboard. Thank you for
all the support given.

Looking forward for a great GSoC with WSO2.

Regards,
Madhawa

On Monday, March 27, 2017, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com
> wrote:

> Hi,
>
> I have shared the finalized draft proposal via the Google Summer of Code
> Web Portal. Kindly let me know if any changes are required.
> Hoping to submit the final proposal with changes based on your feedback.
>
> Regards,
> Madhawa
>
>
> On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>>
>> Good news.
>>
>> Requested a release from Pyjnius Developer Team [1] and managed to get a
>> new release [2] to Python Package Index (PIP). Therefore, we no longer have
>> to develop their library from GitHub code.
>> We can simply consider it as a dependency which gets auto installed when
>> our final product is deployed.
>>
>> [1] - https://github.com/kivy/pyjnius/issues/189#issuecomment-288750222
>> [2] - https://pypi.python.org/pypi/pyjnius/1.1.1
>>
>> Pyjnius is a library which can be used for calling Java methods from
>> Python and obtaining callback responses. It uses native method calls.
>>
>> Regards,
>> Madhawa
>>
>> On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan > > wrote:
>>
>>> Good to know that it worked :)
>>>
>>> Regards
>>> Suho
>>>
>>> On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 Got the prototype working with Python 3 as well. Refer the link below
 for sources.

 https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
 nius_Prototype_Wrap_Python2_3

 This version works with both Python 2.7 and 3.x. (Tested on 2.7 and
 3.5). Uses native calls via Pyjnius API.

 Please note: When you are installing Pyjnius from source, don't use the
 same local copy of source files for both Python2 and Python3. The install
 scripts of Pyjnius leaves temporary files that make subsequent installs on
 a different version of Python fail.

 Regards,
 Madhawa


 On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Installation via PIP can be done. I will add it to Project Proposal.
>
> Regards,
> Madhawa
>
> On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>>
>>
>> On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> Going ahead with the proposal, few questions crossed my mind.
>>>
>>>1. You mentioned previously that WSO2 DAS should also be
>>>supported. What sort of interactions are expected with WSO2 DAS?
>>>1. Should publishing events to WSO2 DAS from Python Siddhi API
>>>   supported?
>>>   2. Should deploying of Siddhi Queries to WSO2 DAS through
>>>   Python Siddhi API be supported?
>>>   3. Any other expectations?
>>>
>>>
>> For the integration with DAS we can use HTTP calls and deploy Siddhi
>> queries and send events to that, we should also start a server from the
>> python side to receive events from DAS and print them.
>>
>> We can work on the details of that after the proposal.
>>
>> One more thing to add, can we also implement Siddhi (the project you
>> will be creating) to be installed via pip ?
>>
>> Regards
>> Suho
>>
>> If any of above can be considered as "optional", indicate them as
>>> well.
>>>
>>> Regards,
>>> Madhawa
>>>
>>> On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 For the initial cut this looks good, please go ahead with the
 proposal. Let's check some other alternatives and start the 
 development.

 Regards
 Suho

 On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> You can find the python version of test case written using Pyjnius
> in below link.
> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
> nius%20Prototype%20Wrap
> Instructions on building the code is also given their.
>
> During development, I noticed following disadvantages of Pyjnius
> API
>
>- Not compatible with Python 3.x.
>- There are no stable releases. However, the code available in
>master branch is relatively stable.
>- Difficult to configure. It is required to develop the
>library from source. This would make it difficult to distribute an 
> API
>de

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-27 Thread Madhawa Vidanapathirana
Hi,

I have shared the finalized draft proposal via the Google Summer of Code
Web Portal. Kindly let me know if any changes are required.
Hoping to submit the final proposal with changes based on your feedback.

Regards,
Madhawa


On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> Good news.
>
> Requested a release from Pyjnius Developer Team [1] and managed to get a
> new release [2] to Python Package Index (PIP). Therefore, we no longer have
> to develop their library from GitHub code.
> We can simply consider it as a dependency which gets auto installed when
> our final product is deployed.
>
> [1] - https://github.com/kivy/pyjnius/issues/189#issuecomment-288750222
> [2] - https://pypi.python.org/pypi/pyjnius/1.1.1
>
> Pyjnius is a library which can be used for calling Java methods from
> Python and obtaining callback responses. It uses native method calls.
>
> Regards,
> Madhawa
>
> On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan 
> wrote:
>
>> Good to know that it worked :)
>>
>> Regards
>> Suho
>>
>> On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> Got the prototype working with Python 3 as well. Refer the link below
>>> for sources.
>>>
>>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>>> nius_Prototype_Wrap_Python2_3
>>>
>>> This version works with both Python 2.7 and 3.x. (Tested on 2.7 and
>>> 3.5). Uses native calls via Pyjnius API.
>>>
>>> Please note: When you are installing Pyjnius from source, don't use the
>>> same local copy of source files for both Python2 and Python3. The install
>>> scripts of Pyjnius leaves temporary files that make subsequent installs on
>>> a different version of Python fail.
>>>
>>> Regards,
>>> Madhawa
>>>
>>>
>>> On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 Installation via PIP can be done. I will add it to Project Proposal.

 Regards,
 Madhawa

 On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

>
>
> On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> Going ahead with the proposal, few questions crossed my mind.
>>
>>1. You mentioned previously that WSO2 DAS should also be
>>supported. What sort of interactions are expected with WSO2 DAS?
>>1. Should publishing events to WSO2 DAS from Python Siddhi API
>>   supported?
>>   2. Should deploying of Siddhi Queries to WSO2 DAS through
>>   Python Siddhi API be supported?
>>   3. Any other expectations?
>>
>>
> For the integration with DAS we can use HTTP calls and deploy Siddhi
> queries and send events to that, we should also start a server from the
> python side to receive events from DAS and print them.
>
> We can work on the details of that after the proposal.
>
> One more thing to add, can we also implement Siddhi (the project you
> will be creating) to be installed via pip ?
>
> Regards
> Suho
>
> If any of above can be considered as "optional", indicate them as well.
>>
>> Regards,
>> Madhawa
>>
>> On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> For the initial cut this looks good, please go ahead with the
>>> proposal. Let's check some other alternatives and start the development.
>>>
>>> Regards
>>> Suho
>>>
>>> On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 You can find the python version of test case written using Pyjnius
 in below link.
 https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
 nius%20Prototype%20Wrap
 Instructions on building the code is also given their.

 During development, I noticed following disadvantages of Pyjnius API

- Not compatible with Python 3.x.
- There are no stable releases. However, the code available in
master branch is relatively stable.
- Difficult to configure. It is required to develop the library
from source. This would make it difficult to distribute an API 
 developed on
Pyjnius.
- There are no evidence that a proper release would be done
soon.

 However, Pyjnius supports callback of events from Java to Python.
 Additionally, it is easier to develop using Pyjnius ones it is 
 configured.

 So, I had a looked at some of the other options as well.

 Java Bridge

 *Advantages*

  

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-24 Thread Madhawa Vidanapathirana
Hi,

Good news.

Requested a release from Pyjnius Developer Team [1] and managed to get a
new release [2] to Python Package Index (PIP). Therefore, we no longer have
to develop their library from GitHub code.
We can simply consider it as a dependency which gets auto installed when
our final product is deployed.

[1] - https://github.com/kivy/pyjnius/issues/189#issuecomment-288750222
[2] - https://pypi.python.org/pypi/pyjnius/1.1.1

Pyjnius is a library which can be used for calling Java methods from Python
and obtaining callback responses. It uses native method calls.

Regards,
Madhawa

On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan 
wrote:

> Good to know that it worked :)
>
> Regards
> Suho
>
> On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> Got the prototype working with Python 3 as well. Refer the link below for
>> sources.
>>
>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>> nius_Prototype_Wrap_Python2_3
>>
>> This version works with both Python 2.7 and 3.x. (Tested on 2.7 and 3.5).
>> Uses native calls via Pyjnius API.
>>
>> Please note: When you are installing Pyjnius from source, don't use the
>> same local copy of source files for both Python2 and Python3. The install
>> scripts of Pyjnius leaves temporary files that make subsequent installs on
>> a different version of Python fail.
>>
>> Regards,
>> Madhawa
>>
>>
>> On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> Installation via PIP can be done. I will add it to Project Proposal.
>>>
>>> Regards,
>>> Madhawa
>>>
>>> On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>


 On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Going ahead with the proposal, few questions crossed my mind.
>
>1. You mentioned previously that WSO2 DAS should also be
>supported. What sort of interactions are expected with WSO2 DAS?
>1. Should publishing events to WSO2 DAS from Python Siddhi API
>   supported?
>   2. Should deploying of Siddhi Queries to WSO2 DAS through
>   Python Siddhi API be supported?
>   3. Any other expectations?
>
>
 For the integration with DAS we can use HTTP calls and deploy Siddhi
 queries and send events to that, we should also start a server from the
 python side to receive events from DAS and print them.

 We can work on the details of that after the proposal.

 One more thing to add, can we also implement Siddhi (the project you
 will be creating) to be installed via pip ?

 Regards
 Suho

 If any of above can be considered as "optional", indicate them as well.
>
> Regards,
> Madhawa
>
> On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> For the initial cut this looks good, please go ahead with the
>> proposal. Let's check some other alternatives and start the development.
>>
>> Regards
>> Suho
>>
>> On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> You can find the python version of test case written using Pyjnius
>>> in below link.
>>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>>> nius%20Prototype%20Wrap
>>> Instructions on building the code is also given their.
>>>
>>> During development, I noticed following disadvantages of Pyjnius API
>>>
>>>- Not compatible with Python 3.x.
>>>- There are no stable releases. However, the code available in
>>>master branch is relatively stable.
>>>- Difficult to configure. It is required to develop the library
>>>from source. This would make it difficult to distribute an API 
>>> developed on
>>>Pyjnius.
>>>- There are no evidence that a proper release would be done
>>>soon.
>>>
>>> However, Pyjnius supports callback of events from Java to Python.
>>> Additionally, it is easier to develop using Pyjnius ones it is 
>>> configured.
>>>
>>> So, I had a looked at some of the other options as well.
>>>
>>> Java Bridge
>>>
>>> *Advantages*
>>>
>>>- Has stable releases available through Python Package Index.
>>>(pip)
>>>
>>> *Disadvantages*
>>>
>>>- No direct call-back mechanism to receive events from Java
>>>side. It is possible to execute Python scripts in Java  but those 
>>> scripts
>>>would not be in same context as Python Host App.
>>>- Comparatively harder to develop on but it is manageable.
>>>
>>> Py4J
>>>
>>> The main difference in Py4J is that

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-22 Thread Madhawa Vidanapathirana
Hi Suho,

Got the prototype working with Python 3 as well. Refer the link below for
sources.

https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyjnius_Prototype_Wrap_Python2_3

This version works with both Python 2.7 and 3.x. (Tested on 2.7 and 3.5).
Uses native calls via Pyjnius API.

Please note: When you are installing Pyjnius from source, don't use the
same local copy of source files for both Python2 and Python3. The install
scripts of Pyjnius leaves temporary files that make subsequent installs on
a different version of Python fail.

Regards,
Madhawa


On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Installation via PIP can be done. I will add it to Project Proposal.
>
> Regards,
> Madhawa
>
> On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan  > wrote:
>
>>
>>
>> On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> Going ahead with the proposal, few questions crossed my mind.
>>>
>>>1. You mentioned previously that WSO2 DAS should also be supported.
>>>What sort of interactions are expected with WSO2 DAS?
>>>1. Should publishing events to WSO2 DAS from Python Siddhi API
>>>   supported?
>>>   2. Should deploying of Siddhi Queries to WSO2 DAS through Python
>>>   Siddhi API be supported?
>>>   3. Any other expectations?
>>>
>>>
>> For the integration with DAS we can use HTTP calls and deploy Siddhi
>> queries and send events to that, we should also start a server from the
>> python side to receive events from DAS and print them.
>>
>> We can work on the details of that after the proposal.
>>
>> One more thing to add, can we also implement Siddhi (the project you will
>> be creating) to be installed via pip ?
>>
>> Regards
>> Suho
>>
>> If any of above can be considered as "optional", indicate them as well.
>>>
>>> Regards,
>>> Madhawa
>>>
>>> On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 For the initial cut this looks good, please go ahead with the proposal.
 Let's check some other alternatives and start the development.

 Regards
 Suho

 On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> You can find the python version of test case written using Pyjnius in
> below link.
> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
> nius%20Prototype%20Wrap
> Instructions on building the code is also given their.
>
> During development, I noticed following disadvantages of Pyjnius API
>
>- Not compatible with Python 3.x.
>- There are no stable releases. However, the code available in
>master branch is relatively stable.
>- Difficult to configure. It is required to develop the library
>from source. This would make it difficult to distribute an API 
> developed on
>Pyjnius.
>- There are no evidence that a proper release would be done soon.
>
> However, Pyjnius supports callback of events from Java to Python.
> Additionally, it is easier to develop using Pyjnius ones it is configured.
>
> So, I had a looked at some of the other options as well.
>
> Java Bridge
>
> *Advantages*
>
>- Has stable releases available through Python Package Index. (pip)
>
> *Disadvantages*
>
>- No direct call-back mechanism to receive events from Java side.
>It is possible to execute Python scripts in Java  but those scripts 
> would
>not be in same context as Python Host App.
>- Comparatively harder to develop on but it is manageable.
>
> Py4J
>
> The main difference in Py4J is that it uses socket connections to
> communicate with JVM instead of JNI. (secured socket connections are
> possible).
>
> *Advantages*
>
>- Stable release available through Python Package Index (pip).
>Easy to configure.
>- Can connect to an already running Java application (with Py4J)
>and communicate with it. (Thus, can be used to communicate with a 
> running
>instance of WSO2 CEP)
>- Supports callback events.
>- Well maintained documentation. Active project.
>
> *Disadvantages*
>
>- Would require a work-around to avoid clashing between socket
>connection ports when concurrent applications use the API.
>
> As of now, I feel Py4J is the most suitable option. However, I am yet
> to look at some other options available such as JPy and JCC.
>
> Regards,
>
> Madhawa
>
> On Wed, Mar 15, 2017 at 11:10 PM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> Great, do also start working on writing the project proposal.
>>
>> Regards
>> Suho
>>
>>

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-22 Thread Sriskandarajah Suhothayan
Good to know that it worked :)

Regards
Suho

On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Got the prototype working with Python 3 as well. Refer the link below for
> sources.
>
> https://github.com/madhawav/CEP-Python-Wraps/tree/master/
> Pyjnius_Prototype_Wrap_Python2_3
>
> This version works with both Python 2.7 and 3.x. (Tested on 2.7 and 3.5).
> Uses native calls via Pyjnius API.
>
> Please note: When you are installing Pyjnius from source, don't use the
> same local copy of source files for both Python2 and Python3. The install
> scripts of Pyjnius leaves temporary files that make subsequent installs on
> a different version of Python fail.
>
> Regards,
> Madhawa
>
>
> On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> Installation via PIP can be done. I will add it to Project Proposal.
>>
>> Regards,
>> Madhawa
>>
>> On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>>
>>>
>>> On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 Going ahead with the proposal, few questions crossed my mind.

1. You mentioned previously that WSO2 DAS should also be supported.
What sort of interactions are expected with WSO2 DAS?
1. Should publishing events to WSO2 DAS from Python Siddhi API
   supported?
   2. Should deploying of Siddhi Queries to WSO2 DAS through Python
   Siddhi API be supported?
   3. Any other expectations?


>>> For the integration with DAS we can use HTTP calls and deploy Siddhi
>>> queries and send events to that, we should also start a server from the
>>> python side to receive events from DAS and print them.
>>>
>>> We can work on the details of that after the proposal.
>>>
>>> One more thing to add, can we also implement Siddhi (the project you
>>> will be creating) to be installed via pip ?
>>>
>>> Regards
>>> Suho
>>>
>>> If any of above can be considered as "optional", indicate them as well.

 Regards,
 Madhawa

 On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> For the initial cut this looks good, please go ahead with the
> proposal. Let's check some other alternatives and start the development.
>
> Regards
> Suho
>
> On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> You can find the python version of test case written using Pyjnius in
>> below link.
>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>> nius%20Prototype%20Wrap
>> Instructions on building the code is also given their.
>>
>> During development, I noticed following disadvantages of Pyjnius API
>>
>>- Not compatible with Python 3.x.
>>- There are no stable releases. However, the code available in
>>master branch is relatively stable.
>>- Difficult to configure. It is required to develop the library
>>from source. This would make it difficult to distribute an API 
>> developed on
>>Pyjnius.
>>- There are no evidence that a proper release would be done soon.
>>
>> However, Pyjnius supports callback of events from Java to Python.
>> Additionally, it is easier to develop using Pyjnius ones it is 
>> configured.
>>
>> So, I had a looked at some of the other options as well.
>>
>> Java Bridge
>>
>> *Advantages*
>>
>>- Has stable releases available through Python Package Index.
>>(pip)
>>
>> *Disadvantages*
>>
>>- No direct call-back mechanism to receive events from Java side.
>>It is possible to execute Python scripts in Java  but those scripts 
>> would
>>not be in same context as Python Host App.
>>- Comparatively harder to develop on but it is manageable.
>>
>> Py4J
>>
>> The main difference in Py4J is that it uses socket connections to
>> communicate with JVM instead of JNI. (secured socket connections are
>> possible).
>>
>> *Advantages*
>>
>>- Stable release available through Python Package Index (pip).
>>Easy to configure.
>>- Can connect to an already running Java application (with Py4J)
>>and communicate with it. (Thus, can be used to communicate with a 
>> running
>>instance of WSO2 CEP)
>>- Supports callback events.
>>- Well maintained documentation. Active project.
>>
>> *Disadvantages*
>>
>>- Would require a work-around to avoid clashing between socket
>>connection ports when concurrent applications use the API.
>>
>> As of now, I feel Py4J is the most suitable option. However

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-20 Thread Madhawa Vidanapathirana
Hi Suho,

Installation via PIP can be done. I will add it to Project Proposal.

Regards,
Madhawa

On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan 
wrote:

>
>
> On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> Going ahead with the proposal, few questions crossed my mind.
>>
>>1. You mentioned previously that WSO2 DAS should also be supported.
>>What sort of interactions are expected with WSO2 DAS?
>>1. Should publishing events to WSO2 DAS from Python Siddhi API
>>   supported?
>>   2. Should deploying of Siddhi Queries to WSO2 DAS through Python
>>   Siddhi API be supported?
>>   3. Any other expectations?
>>
>>
> For the integration with DAS we can use HTTP calls and deploy Siddhi
> queries and send events to that, we should also start a server from the
> python side to receive events from DAS and print them.
>
> We can work on the details of that after the proposal.
>
> One more thing to add, can we also implement Siddhi (the project you will
> be creating) to be installed via pip ?
>
> Regards
> Suho
>
> If any of above can be considered as "optional", indicate them as well.
>>
>> Regards,
>> Madhawa
>>
>> On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan > > wrote:
>>
>>> For the initial cut this looks good, please go ahead with the proposal.
>>> Let's check some other alternatives and start the development.
>>>
>>> Regards
>>> Suho
>>>
>>> On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 You can find the python version of test case written using Pyjnius in
 below link.
 https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
 nius%20Prototype%20Wrap
 Instructions on building the code is also given their.

 During development, I noticed following disadvantages of Pyjnius API

- Not compatible with Python 3.x.
- There are no stable releases. However, the code available in
master branch is relatively stable.
- Difficult to configure. It is required to develop the library
from source. This would make it difficult to distribute an API 
 developed on
Pyjnius.
- There are no evidence that a proper release would be done soon.

 However, Pyjnius supports callback of events from Java to Python.
 Additionally, it is easier to develop using Pyjnius ones it is configured.

 So, I had a looked at some of the other options as well.

 Java Bridge

 *Advantages*

- Has stable releases available through Python Package Index. (pip)

 *Disadvantages*

- No direct call-back mechanism to receive events from Java side.
It is possible to execute Python scripts in Java  but those scripts 
 would
not be in same context as Python Host App.
- Comparatively harder to develop on but it is manageable.

 Py4J

 The main difference in Py4J is that it uses socket connections to
 communicate with JVM instead of JNI. (secured socket connections are
 possible).

 *Advantages*

- Stable release available through Python Package Index (pip). Easy
to configure.
- Can connect to an already running Java application (with Py4J)
and communicate with it. (Thus, can be used to communicate with a 
 running
instance of WSO2 CEP)
- Supports callback events.
- Well maintained documentation. Active project.

 *Disadvantages*

- Would require a work-around to avoid clashing between socket
connection ports when concurrent applications use the API.

 As of now, I feel Py4J is the most suitable option. However, I am yet
 to look at some other options available such as JPy and JCC.

 Regards,

 Madhawa

 On Wed, Mar 15, 2017 at 11:10 PM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> Great, do also start working on writing the project proposal.
>
> Regards
> Suho
>
> On Wed, Mar 15, 2017 at 10:58 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>> Progress made so far is managed to write a python version of test
>> case you suggested using Pyjnius [1] [2].
>> Pyjnius is capable of handling method calls and callbacks to/from
>> JAVA via JNI.
>>
>> I will send the code here after I properly arrange it into a
>> prototype API.
>>
>> [1] - https://pyjnius.readthedocs.io/en/latest/index.html
>> [2] - https://github.com/kivy/pyjnius/blob/master/docs/source/inde
>> x.rst
>>
>> Regards,
>> Madhawa
>>
>> On Wed, Mar 15, 2017 at 1:11 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> As the first step focus on building APIs such that we can write th

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-19 Thread Sriskandarajah Suhothayan
On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Going ahead with the proposal, few questions crossed my mind.
>
>1. You mentioned previously that WSO2 DAS should also be supported.
>What sort of interactions are expected with WSO2 DAS?
>1. Should publishing events to WSO2 DAS from Python Siddhi API
>   supported?
>   2. Should deploying of Siddhi Queries to WSO2 DAS through Python
>   Siddhi API be supported?
>   3. Any other expectations?
>
>
For the integration with DAS we can use HTTP calls and deploy Siddhi
queries and send events to that, we should also start a server from the
python side to receive events from DAS and print them.

We can work on the details of that after the proposal.

One more thing to add, can we also implement Siddhi (the project you will
be creating) to be installed via pip ?

Regards
Suho

If any of above can be considered as "optional", indicate them as well.
>
> Regards,
> Madhawa
>
> On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan 
> wrote:
>
>> For the initial cut this looks good, please go ahead with the proposal.
>> Let's check some other alternatives and start the development.
>>
>> Regards
>> Suho
>>
>> On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> You can find the python version of test case written using Pyjnius in
>>> below link.
>>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>>> nius%20Prototype%20Wrap
>>> Instructions on building the code is also given their.
>>>
>>> During development, I noticed following disadvantages of Pyjnius API
>>>
>>>- Not compatible with Python 3.x.
>>>- There are no stable releases. However, the code available in
>>>master branch is relatively stable.
>>>- Difficult to configure. It is required to develop the library from
>>>source. This would make it difficult to distribute an API developed on
>>>Pyjnius.
>>>- There are no evidence that a proper release would be done soon.
>>>
>>> However, Pyjnius supports callback of events from Java to Python.
>>> Additionally, it is easier to develop using Pyjnius ones it is configured.
>>>
>>> So, I had a looked at some of the other options as well.
>>>
>>> Java Bridge
>>>
>>> *Advantages*
>>>
>>>- Has stable releases available through Python Package Index. (pip)
>>>
>>> *Disadvantages*
>>>
>>>- No direct call-back mechanism to receive events from Java side. It
>>>is possible to execute Python scripts in Java  but those scripts would 
>>> not
>>>be in same context as Python Host App.
>>>- Comparatively harder to develop on but it is manageable.
>>>
>>> Py4J
>>>
>>> The main difference in Py4J is that it uses socket connections to
>>> communicate with JVM instead of JNI. (secured socket connections are
>>> possible).
>>>
>>> *Advantages*
>>>
>>>- Stable release available through Python Package Index (pip). Easy
>>>to configure.
>>>- Can connect to an already running Java application (with Py4J) and
>>>communicate with it. (Thus, can be used to communicate with a running
>>>instance of WSO2 CEP)
>>>- Supports callback events.
>>>- Well maintained documentation. Active project.
>>>
>>> *Disadvantages*
>>>
>>>- Would require a work-around to avoid clashing between socket
>>>connection ports when concurrent applications use the API.
>>>
>>> As of now, I feel Py4J is the most suitable option. However, I am yet to
>>> look at some other options available such as JPy and JCC.
>>>
>>> Regards,
>>>
>>> Madhawa
>>>
>>> On Wed, Mar 15, 2017 at 11:10 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 Great, do also start working on writing the project proposal.

 Regards
 Suho

 On Wed, Mar 15, 2017 at 10:58 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
> Progress made so far is managed to write a python version of test case
> you suggested using Pyjnius [1] [2].
> Pyjnius is capable of handling method calls and callbacks to/from JAVA
> via JNI.
>
> I will send the code here after I properly arrange it into a prototype
> API.
>
> [1] - https://pyjnius.readthedocs.io/en/latest/index.html
> [2] - https://github.com/kivy/pyjnius/blob/master/docs/source/inde
> x.rst
>
> Regards,
> Madhawa
>
> On Wed, Mar 15, 2017 at 1:11 AM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> As the first step focus on building APIs such that we can write the
>> following test case[1] in python.
>>
>> [1]https://github.com/wso2/siddhi/blob/master/modules/siddhi
>> -samples/quick-start-samples/src/main/java/org/wso2/siddhi/s
>> ample/SimpleFilterSample.java
>>
>> Regards
>> Suho
>>
>> On Tue, Mar 14, 2017 at 9:55 AM, Madhawa Vidanapathirana <
>

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-19 Thread Madhawa Vidanapathirana
Hi Suho,

Going ahead with the proposal, few questions crossed my mind.

   1. You mentioned previously that WSO2 DAS should also be supported. What
   sort of interactions are expected with WSO2 DAS?
   1. Should publishing events to WSO2 DAS from Python Siddhi API supported?
  2. Should deploying of Siddhi Queries to WSO2 DAS through Python
  Siddhi API be supported?
  3. Any other expectations?

If any of above can be considered as "optional", indicate them as well.

Regards,
Madhawa

On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan 
wrote:

> For the initial cut this looks good, please go ahead with the proposal.
> Let's check some other alternatives and start the development.
>
> Regards
> Suho
>
> On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> You can find the python version of test case written using Pyjnius in
>> below link.
>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>> nius%20Prototype%20Wrap
>> Instructions on building the code is also given their.
>>
>> During development, I noticed following disadvantages of Pyjnius API
>>
>>- Not compatible with Python 3.x.
>>- There are no stable releases. However, the code available in master
>>branch is relatively stable.
>>- Difficult to configure. It is required to develop the library from
>>source. This would make it difficult to distribute an API developed on
>>Pyjnius.
>>- There are no evidence that a proper release would be done soon.
>>
>> However, Pyjnius supports callback of events from Java to Python.
>> Additionally, it is easier to develop using Pyjnius ones it is configured.
>>
>> So, I had a looked at some of the other options as well.
>>
>> Java Bridge
>>
>> *Advantages*
>>
>>- Has stable releases available through Python Package Index. (pip)
>>
>> *Disadvantages*
>>
>>- No direct call-back mechanism to receive events from Java side. It
>>is possible to execute Python scripts in Java  but those scripts would not
>>be in same context as Python Host App.
>>- Comparatively harder to develop on but it is manageable.
>>
>> Py4J
>>
>> The main difference in Py4J is that it uses socket connections to
>> communicate with JVM instead of JNI. (secured socket connections are
>> possible).
>>
>> *Advantages*
>>
>>- Stable release available through Python Package Index (pip). Easy
>>to configure.
>>- Can connect to an already running Java application (with Py4J) and
>>communicate with it. (Thus, can be used to communicate with a running
>>instance of WSO2 CEP)
>>- Supports callback events.
>>- Well maintained documentation. Active project.
>>
>> *Disadvantages*
>>
>>- Would require a work-around to avoid clashing between socket
>>connection ports when concurrent applications use the API.
>>
>> As of now, I feel Py4J is the most suitable option. However, I am yet to
>> look at some other options available such as JPy and JCC.
>>
>> Regards,
>>
>> Madhawa
>>
>> On Wed, Mar 15, 2017 at 11:10 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> Great, do also start working on writing the project proposal.
>>>
>>> Regards
>>> Suho
>>>
>>> On Wed, Mar 15, 2017 at 10:58 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,
 Progress made so far is managed to write a python version of test case
 you suggested using Pyjnius [1] [2].
 Pyjnius is capable of handling method calls and callbacks to/from JAVA
 via JNI.

 I will send the code here after I properly arrange it into a prototype
 API.

 [1] - https://pyjnius.readthedocs.io/en/latest/index.html
 [2] - https://github.com/kivy/pyjnius/blob/master/docs/source/index.rst

 Regards,
 Madhawa

 On Wed, Mar 15, 2017 at 1:11 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> As the first step focus on building APIs such that we can write the
> following test case[1] in python.
>
> [1]https://github.com/wso2/siddhi/blob/master/modules/siddhi
> -samples/quick-start-samples/src/main/java/org/wso2/siddhi/s
> ample/SimpleFilterSample.java
>
> Regards
> Suho
>
> On Tue, Mar 14, 2017 at 9:55 AM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>> Thank you for your quick reply.
>>
>> Since directly using Siddhi Library is the more general case, I'll
>> first focus on it.
>>
>> 1) I am thinking about following the same structure in JAVA API,
>> centered around Siddhi Manager. Any opinions on this?
>> 2) Any idea on extent to which lower level/internal components should
>> be exposed? (e.g. - Exposing "StreamDefinition" class in addition to
>> creating stream via Siddhi query using 
>> "siddhiManager.createExecutionPlanRuntime").
>> I have heard that it is usually discouraged

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-18 Thread Sriskandarajah Suhothayan
For the initial cut this looks good, please go ahead with the proposal.
Let's check some other alternatives and start the development.

Regards
Suho

On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> You can find the python version of test case written using Pyjnius in
> below link.
> https://github.com/madhawav/CEP-Python-Wraps/tree/master/
> Pyjnius%20Prototype%20Wrap
> Instructions on building the code is also given their.
>
> During development, I noticed following disadvantages of Pyjnius API
>
>- Not compatible with Python 3.x.
>- There are no stable releases. However, the code available in master
>branch is relatively stable.
>- Difficult to configure. It is required to develop the library from
>source. This would make it difficult to distribute an API developed on
>Pyjnius.
>- There are no evidence that a proper release would be done soon.
>
> However, Pyjnius supports callback of events from Java to Python.
> Additionally, it is easier to develop using Pyjnius ones it is configured.
>
> So, I had a looked at some of the other options as well.
>
> Java Bridge
>
> *Advantages*
>
>- Has stable releases available through Python Package Index. (pip)
>
> *Disadvantages*
>
>- No direct call-back mechanism to receive events from Java side. It
>is possible to execute Python scripts in Java  but those scripts would not
>be in same context as Python Host App.
>- Comparatively harder to develop on but it is manageable.
>
> Py4J
>
> The main difference in Py4J is that it uses socket connections to
> communicate with JVM instead of JNI. (secured socket connections are
> possible).
>
> *Advantages*
>
>- Stable release available through Python Package Index (pip). Easy to
>configure.
>- Can connect to an already running Java application (with Py4J) and
>communicate with it. (Thus, can be used to communicate with a running
>instance of WSO2 CEP)
>- Supports callback events.
>- Well maintained documentation. Active project.
>
> *Disadvantages*
>
>- Would require a work-around to avoid clashing between socket
>connection ports when concurrent applications use the API.
>
> As of now, I feel Py4J is the most suitable option. However, I am yet to
> look at some other options available such as JPy and JCC.
>
> Regards,
>
> Madhawa
>
> On Wed, Mar 15, 2017 at 11:10 PM, Sriskandarajah Suhothayan  > wrote:
>
>> Great, do also start working on writing the project proposal.
>>
>> Regards
>> Suho
>>
>> On Wed, Mar 15, 2017 at 10:58 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>> Progress made so far is managed to write a python version of test case
>>> you suggested using Pyjnius [1] [2].
>>> Pyjnius is capable of handling method calls and callbacks to/from JAVA
>>> via JNI.
>>>
>>> I will send the code here after I properly arrange it into a prototype
>>> API.
>>>
>>> [1] - https://pyjnius.readthedocs.io/en/latest/index.html
>>> [2] - https://github.com/kivy/pyjnius/blob/master/docs/source/index.rst
>>>
>>> Regards,
>>> Madhawa
>>>
>>> On Wed, Mar 15, 2017 at 1:11 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 As the first step focus on building APIs such that we can write the
 following test case[1] in python.

 [1]https://github.com/wso2/siddhi/blob/master/modules/siddhi
 -samples/quick-start-samples/src/main/java/org/wso2/siddhi/s
 ample/SimpleFilterSample.java

 Regards
 Suho

 On Tue, Mar 14, 2017 at 9:55 AM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
> Thank you for your quick reply.
>
> Since directly using Siddhi Library is the more general case, I'll
> first focus on it.
>
> 1) I am thinking about following the same structure in JAVA API,
> centered around Siddhi Manager. Any opinions on this?
> 2) Any idea on extent to which lower level/internal components should
> be exposed? (e.g. - Exposing "StreamDefinition" class in addition to
> creating stream via Siddhi query using 
> "siddhiManager.createExecutionPlanRuntime").
> I have heard that it is usually discouraged to use lower level components
> instead of the query approach.
>
> Will try to send you a prototype covering basic functionality through
> Siddhi Java API, before making the proposal for entire project.
>
> Madhawa
>
> On Mon, Mar 13, 2017 at 9:53 PM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>>
>>
>> On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi.
>>>
>>> I am an undergraduate from Department of Computer Science and
>>> Engineering, University of Moratuwa. I recently completed my internship 
>>> at
>>> WSO2 working with the Support Team on the project 

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-18 Thread Madhawa Vidanapathirana
Hi Suho,

You can find the python version of test case written using Pyjnius in below
link.
https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyjnius%20Prototype%20Wrap
Instructions on building the code is also given their.

During development, I noticed following disadvantages of Pyjnius API

   - Not compatible with Python 3.x.
   - There are no stable releases. However, the code available in master
   branch is relatively stable.
   - Difficult to configure. It is required to develop the library from
   source. This would make it difficult to distribute an API developed on
   Pyjnius.
   - There are no evidence that a proper release would be done soon.

However, Pyjnius supports callback of events from Java to Python.
Additionally, it is easier to develop using Pyjnius ones it is configured.

So, I had a looked at some of the other options as well.

Java Bridge

*Advantages*

   - Has stable releases available through Python Package Index. (pip)

*Disadvantages*

   - No direct call-back mechanism to receive events from Java side. It is
   possible to execute Python scripts in Java  but those scripts would not be
   in same context as Python Host App.
   - Comparatively harder to develop on but it is manageable.

Py4J

The main difference in Py4J is that it uses socket connections to
communicate with JVM instead of JNI. (secured socket connections are
possible).

*Advantages*

   - Stable release available through Python Package Index (pip). Easy to
   configure.
   - Can connect to an already running Java application (with Py4J) and
   communicate with it. (Thus, can be used to communicate with a running
   instance of WSO2 CEP)
   - Supports callback events.
   - Well maintained documentation. Active project.

*Disadvantages*

   - Would require a work-around to avoid clashing between socket
   connection ports when concurrent applications use the API.

As of now, I feel Py4J is the most suitable option. However, I am yet to
look at some other options available such as JPy and JCC.

Regards,

Madhawa

On Wed, Mar 15, 2017 at 11:10 PM, Sriskandarajah Suhothayan 
wrote:

> Great, do also start working on writing the project proposal.
>
> Regards
> Suho
>
> On Wed, Mar 15, 2017 at 10:58 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>> Progress made so far is managed to write a python version of test case
>> you suggested using Pyjnius [1] [2].
>> Pyjnius is capable of handling method calls and callbacks to/from JAVA
>> via JNI.
>>
>> I will send the code here after I properly arrange it into a prototype
>> API.
>>
>> [1] - https://pyjnius.readthedocs.io/en/latest/index.html
>> [2] - https://github.com/kivy/pyjnius/blob/master/docs/source/index.rst
>>
>> Regards,
>> Madhawa
>>
>> On Wed, Mar 15, 2017 at 1:11 AM, Sriskandarajah Suhothayan > > wrote:
>>
>>> As the first step focus on building APIs such that we can write the
>>> following test case[1] in python.
>>>
>>> [1]https://github.com/wso2/siddhi/blob/master/modules/siddhi
>>> -samples/quick-start-samples/src/main/java/org/wso2/siddhi/s
>>> ample/SimpleFilterSample.java
>>>
>>> Regards
>>> Suho
>>>
>>> On Tue, Mar 14, 2017 at 9:55 AM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,
 Thank you for your quick reply.

 Since directly using Siddhi Library is the more general case, I'll
 first focus on it.

 1) I am thinking about following the same structure in JAVA API,
 centered around Siddhi Manager. Any opinions on this?
 2) Any idea on extent to which lower level/internal components should
 be exposed? (e.g. - Exposing "StreamDefinition" class in addition to
 creating stream via Siddhi query using 
 "siddhiManager.createExecutionPlanRuntime").
 I have heard that it is usually discouraged to use lower level components
 instead of the query approach.

 Will try to send you a prototype covering basic functionality through
 Siddhi Java API, before making the proposal for entire project.

 Madhawa

 On Mon, Mar 13, 2017 at 9:53 PM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

>
>
> On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi.
>>
>> I am an undergraduate from Department of Computer Science and
>> Engineering, University of Moratuwa. I recently completed my internship 
>> at
>> WSO2 working with the Support Team on the project WSO2 Support Knowledge
>> Base.
>>
>> I am interested on GSOC Project* "Proposal 16: Python API for Siddhi
>> CEP"*. My internship project at WSO2 was almost entirely done using
>> Python. Additionally, I used Py4J Framework to interface certain parts of
>> the project to JAVA APIs. Furthermore, I have a certain amount of 
>> exposure
>> with Siddhi/CEP through the WHACK project I took part.
>>
>> I went throug

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-15 Thread Sriskandarajah Suhothayan
Great, do also start working on writing the project proposal.

Regards
Suho

On Wed, Mar 15, 2017 at 10:58 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
> Progress made so far is managed to write a python version of test case you
> suggested using Pyjnius [1] [2].
> Pyjnius is capable of handling method calls and callbacks to/from JAVA via
> JNI.
>
> I will send the code here after I properly arrange it into a prototype
> API.
>
> [1] - https://pyjnius.readthedocs.io/en/latest/index.html
> [2] - https://github.com/kivy/pyjnius/blob/master/docs/source/index.rst
>
> Regards,
> Madhawa
>
> On Wed, Mar 15, 2017 at 1:11 AM, Sriskandarajah Suhothayan 
> wrote:
>
>> As the first step focus on building APIs such that we can write the
>> following test case[1] in python.
>>
>> [1]https://github.com/wso2/siddhi/blob/master/modules/siddhi
>> -samples/quick-start-samples/src/main/java/org/wso2/siddhi/
>> sample/SimpleFilterSample.java
>>
>> Regards
>> Suho
>>
>> On Tue, Mar 14, 2017 at 9:55 AM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>> Thank you for your quick reply.
>>>
>>> Since directly using Siddhi Library is the more general case, I'll first
>>> focus on it.
>>>
>>> 1) I am thinking about following the same structure in JAVA API,
>>> centered around Siddhi Manager. Any opinions on this?
>>> 2) Any idea on extent to which lower level/internal components should be
>>> exposed? (e.g. - Exposing "StreamDefinition" class in addition to creating
>>> stream via Siddhi query using "siddhiManager.createExecutionPlanRuntime").
>>> I have heard that it is usually discouraged to use lower level components
>>> instead of the query approach.
>>>
>>> Will try to send you a prototype covering basic functionality through
>>> Siddhi Java API, before making the proposal for entire project.
>>>
>>> Madhawa
>>>
>>> On Mon, Mar 13, 2017 at 9:53 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>


 On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi.
>
> I am an undergraduate from Department of Computer Science and
> Engineering, University of Moratuwa. I recently completed my internship at
> WSO2 working with the Support Team on the project WSO2 Support Knowledge
> Base.
>
> I am interested on GSOC Project* "Proposal 16: Python API for Siddhi
> CEP"*. My internship project at WSO2 was almost entirely done using
> Python. Additionally, I used Py4J Framework to interface certain parts of
> the project to JAVA APIs. Furthermore, I have a certain amount of exposure
> with Siddhi/CEP through the WHACK project I took part.
>
> I went through the provided details in WSO2 GSOC 2017 Project List
> page and I am interested to know some more details.
>
>1. What version of CEP/Siddhi should be used by the API?
>
> You need to support the latest released version of Siddhi and DAS
 which is in DAS 3.1 and also for the latest Siddhi (4.0)

>
>1. In the description, does "Service APIs" refer to "Admin
>Services API" which is usually used by Admin Panel to communicate with 
> CEP?
>
> Yes, to deploy the queries and to send and receive events

>
>1. Should the Siddhi Python API require WSO2 CEP to be running in
>order to make Python API usable?
>
> Not necessay it should both work with the running CEP/DAS and use
 Siddhi library in the ohter cases.

>
>1. Is the Python API expected to do configuring of Siddhi CEP,
>streaming events to/from Siddhi CEP, or both?
>
> Yes in terms of queries.



> Thank You
>
>
> --
> *Madhawa Vidanapathirana*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> Mobile: (+94) 716874425 <071%20687%204425>
> Email: madhawavidanapathir...@gmail.com
> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>



 --

 *S. Suhothayan*
 Associate Director / Architect & Team Lead of WSO2 Complex Event
 Processor
 *WSO2 Inc. *http://wso2.com
 * *
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
 http://suhothayan.blogspot.com/ twitter:
 http://twitter.com/suhothayan  | linked-in:
 http://lk.linkedin.com/in/suhothayan 
 *

>>>
>>>
>>>
>>> --
>>> *Madhawa Vidanapathirana*
>>> Student
>>> Department of Computer Science and Engineering
>>> University of Moratuwa
>>> Sri Lanka
>>>
>>> Mobile: (+94) 716874425 <071%20687%204425>
>>> Email: madhawavidanapathir...@gmail.com
>>> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapa

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-15 Thread Madhawa Vidanapathirana
Hi Suho,
Progress made so far is managed to write a python version of test case you
suggested using Pyjnius [1] [2].
Pyjnius is capable of handling method calls and callbacks to/from JAVA via
JNI.

I will send the code here after I properly arrange it into a prototype API.

[1] - https://pyjnius.readthedocs.io/en/latest/index.html
[2] - https://github.com/kivy/pyjnius/blob/master/docs/source/index.rst

Regards,
Madhawa

On Wed, Mar 15, 2017 at 1:11 AM, Sriskandarajah Suhothayan 
wrote:

> As the first step focus on building APIs such that we can write the
> following test case[1] in python.
>
> [1]https://github.com/wso2/siddhi/blob/master/modules/
> siddhi-samples/quick-start-samples/src/main/java/org/wso2/siddhi/sample/
> SimpleFilterSample.java
>
> Regards
> Suho
>
> On Tue, Mar 14, 2017 at 9:55 AM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>> Thank you for your quick reply.
>>
>> Since directly using Siddhi Library is the more general case, I'll first
>> focus on it.
>>
>> 1) I am thinking about following the same structure in JAVA API, centered
>> around Siddhi Manager. Any opinions on this?
>> 2) Any idea on extent to which lower level/internal components should be
>> exposed? (e.g. - Exposing "StreamDefinition" class in addition to creating
>> stream via Siddhi query using "siddhiManager.createExecutionPlanRuntime").
>> I have heard that it is usually discouraged to use lower level components
>> instead of the query approach.
>>
>> Will try to send you a prototype covering basic functionality through
>> Siddhi Java API, before making the proposal for entire project.
>>
>> Madhawa
>>
>> On Mon, Mar 13, 2017 at 9:53 PM, Sriskandarajah Suhothayan > > wrote:
>>
>>>
>>>
>>> On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi.

 I am an undergraduate from Department of Computer Science and
 Engineering, University of Moratuwa. I recently completed my internship at
 WSO2 working with the Support Team on the project WSO2 Support Knowledge
 Base.

 I am interested on GSOC Project* "Proposal 16: Python API for Siddhi
 CEP"*. My internship project at WSO2 was almost entirely done using
 Python. Additionally, I used Py4J Framework to interface certain parts of
 the project to JAVA APIs. Furthermore, I have a certain amount of exposure
 with Siddhi/CEP through the WHACK project I took part.

 I went through the provided details in WSO2 GSOC 2017 Project List page
 and I am interested to know some more details.

1. What version of CEP/Siddhi should be used by the API?

 You need to support the latest released version of Siddhi and DAS which
>>> is in DAS 3.1 and also for the latest Siddhi (4.0)
>>>

1. In the description, does "Service APIs" refer to "Admin Services
API" which is usually used by Admin Panel to communicate with CEP?

 Yes, to deploy the queries and to send and receive events
>>>

1. Should the Siddhi Python API require WSO2 CEP to be running in
order to make Python API usable?

 Not necessay it should both work with the running CEP/DAS and use
>>> Siddhi library in the ohter cases.
>>>

1. Is the Python API expected to do configuring of Siddhi CEP,
streaming events to/from Siddhi CEP, or both?

 Yes in terms of queries.
>>>
>>>
>>>
 Thank You


 --
 *Madhawa Vidanapathirana*
 Student
 Department of Computer Science and Engineering
 University of Moratuwa
 Sri Lanka

 Mobile: (+94) 716874425 <071%20687%204425>
 Email: madhawavidanapathir...@gmail.com
 Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94

>>>
>>>
>>>
>>> --
>>>
>>> *S. Suhothayan*
>>> Associate Director / Architect & Team Lead of WSO2 Complex Event
>>> Processor
>>> *WSO2 Inc. *http://wso2.com
>>> * *
>>> lean . enterprise . middleware
>>>
>>>
>>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
>>> http://suhothayan.blogspot.com/ twitter:
>>> http://twitter.com/suhothayan  | linked-in:
>>> http://lk.linkedin.com/in/suhothayan *
>>>
>>
>>
>>
>> --
>> *Madhawa Vidanapathirana*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa
>> Sri Lanka
>>
>> Mobile: (+94) 716874425 <071%20687%204425>
>> Email: madhawavidanapathir...@gmail.com
>> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>>
>
>
>
> --
>
> *S. Suhothayan*
> Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twit

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-14 Thread Sriskandarajah Suhothayan
As the first step focus on building APIs such that we can write the
following test case[1] in python.

[1]
https://github.com/wso2/siddhi/blob/master/modules/siddhi-samples/quick-start-samples/src/main/java/org/wso2/siddhi/sample/SimpleFilterSample.java

Regards
Suho

On Tue, Mar 14, 2017 at 9:55 AM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
> Thank you for your quick reply.
>
> Since directly using Siddhi Library is the more general case, I'll first
> focus on it.
>
> 1) I am thinking about following the same structure in JAVA API, centered
> around Siddhi Manager. Any opinions on this?
> 2) Any idea on extent to which lower level/internal components should be
> exposed? (e.g. - Exposing "StreamDefinition" class in addition to creating
> stream via Siddhi query using "siddhiManager.createExecutionPlanRuntime").
> I have heard that it is usually discouraged to use lower level components
> instead of the query approach.
>
> Will try to send you a prototype covering basic functionality through
> Siddhi Java API, before making the proposal for entire project.
>
> Madhawa
>
> On Mon, Mar 13, 2017 at 9:53 PM, Sriskandarajah Suhothayan 
> wrote:
>
>>
>>
>> On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi.
>>>
>>> I am an undergraduate from Department of Computer Science and
>>> Engineering, University of Moratuwa. I recently completed my internship at
>>> WSO2 working with the Support Team on the project WSO2 Support Knowledge
>>> Base.
>>>
>>> I am interested on GSOC Project* "Proposal 16: Python API for Siddhi
>>> CEP"*. My internship project at WSO2 was almost entirely done using
>>> Python. Additionally, I used Py4J Framework to interface certain parts of
>>> the project to JAVA APIs. Furthermore, I have a certain amount of exposure
>>> with Siddhi/CEP through the WHACK project I took part.
>>>
>>> I went through the provided details in WSO2 GSOC 2017 Project List page
>>> and I am interested to know some more details.
>>>
>>>1. What version of CEP/Siddhi should be used by the API?
>>>
>>> You need to support the latest released version of Siddhi and DAS which
>> is in DAS 3.1 and also for the latest Siddhi (4.0)
>>
>>>
>>>1. In the description, does "Service APIs" refer to "Admin Services
>>>API" which is usually used by Admin Panel to communicate with CEP?
>>>
>>> Yes, to deploy the queries and to send and receive events
>>
>>>
>>>1. Should the Siddhi Python API require WSO2 CEP to be running in
>>>order to make Python API usable?
>>>
>>> Not necessay it should both work with the running CEP/DAS and use Siddhi
>> library in the ohter cases.
>>
>>>
>>>1. Is the Python API expected to do configuring of Siddhi CEP,
>>>streaming events to/from Siddhi CEP, or both?
>>>
>>> Yes in terms of queries.
>>
>>
>>
>>> Thank You
>>>
>>>
>>> --
>>> *Madhawa Vidanapathirana*
>>> Student
>>> Department of Computer Science and Engineering
>>> University of Moratuwa
>>> Sri Lanka
>>>
>>> Mobile: (+94) 716874425 <071%20687%204425>
>>> Email: madhawavidanapathir...@gmail.com
>>> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect & Team Lead of WSO2 Complex Event
>> Processor
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>
>
>
> --
> *Madhawa Vidanapathirana*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> Mobile: (+94) 716874425 <071%20687%204425>
> Email: madhawavidanapathir...@gmail.com
> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-13 Thread Madhawa Vidanapathirana
Hi,
Thank you for your quick reply.

Since directly using Siddhi Library is the more general case, I'll first
focus on it.

1) I am thinking about following the same structure in JAVA API, centered
around Siddhi Manager. Any opinions on this?
2) Any idea on extent to which lower level/internal components should be
exposed? (e.g. - Exposing "StreamDefinition" class in addition to creating
stream via Siddhi query using "siddhiManager.createExecutionPlanRuntime").
I have heard that it is usually discouraged to use lower level components
instead of the query approach.

Will try to send you a prototype covering basic functionality through
Siddhi Java API, before making the proposal for entire project.

Madhawa

On Mon, Mar 13, 2017 at 9:53 PM, Sriskandarajah Suhothayan 
wrote:

>
>
> On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi.
>>
>> I am an undergraduate from Department of Computer Science and
>> Engineering, University of Moratuwa. I recently completed my internship at
>> WSO2 working with the Support Team on the project WSO2 Support Knowledge
>> Base.
>>
>> I am interested on GSOC Project* "Proposal 16: Python API for Siddhi
>> CEP"*. My internship project at WSO2 was almost entirely done using
>> Python. Additionally, I used Py4J Framework to interface certain parts of
>> the project to JAVA APIs. Furthermore, I have a certain amount of exposure
>> with Siddhi/CEP through the WHACK project I took part.
>>
>> I went through the provided details in WSO2 GSOC 2017 Project List page
>> and I am interested to know some more details.
>>
>>1. What version of CEP/Siddhi should be used by the API?
>>
>> You need to support the latest released version of Siddhi and DAS which
> is in DAS 3.1 and also for the latest Siddhi (4.0)
>
>>
>>1. In the description, does "Service APIs" refer to "Admin Services
>>API" which is usually used by Admin Panel to communicate with CEP?
>>
>> Yes, to deploy the queries and to send and receive events
>
>>
>>1. Should the Siddhi Python API require WSO2 CEP to be running in
>>order to make Python API usable?
>>
>> Not necessay it should both work with the running CEP/DAS and use Siddhi
> library in the ohter cases.
>
>>
>>1. Is the Python API expected to do configuring of Siddhi CEP,
>>streaming events to/from Siddhi CEP, or both?
>>
>> Yes in terms of queries.
>
>
>
>> Thank You
>>
>>
>> --
>> *Madhawa Vidanapathirana*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa
>> Sri Lanka
>>
>> Mobile: (+94) 716874425 <071%20687%204425>
>> Email: madhawavidanapathir...@gmail.com
>> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>>
>
>
>
> --
>
> *S. Suhothayan*
> Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>



-- 
*Madhawa Vidanapathirana*
Student
Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka

Mobile: (+94) 716874425
Email: madhawavidanapathir...@gmail.com
Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-13 Thread Sriskandarajah Suhothayan
On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi.
>
> I am an undergraduate from Department of Computer Science and Engineering,
> University of Moratuwa. I recently completed my internship at WSO2 working
> with the Support Team on the project WSO2 Support Knowledge Base.
>
> I am interested on GSOC Project* "Proposal 16: Python API for Siddhi CEP"*.
> My internship project at WSO2 was almost entirely done using Python.
> Additionally, I used Py4J Framework to interface certain parts of the
> project to JAVA APIs. Furthermore, I have a certain amount of exposure with
> Siddhi/CEP through the WHACK project I took part.
>
> I went through the provided details in WSO2 GSOC 2017 Project List page
> and I am interested to know some more details.
>
>1. What version of CEP/Siddhi should be used by the API?
>
> You need to support the latest released version of Siddhi and DAS which is
in DAS 3.1 and also for the latest Siddhi (4.0)

>
>1. In the description, does "Service APIs" refer to "Admin Services
>API" which is usually used by Admin Panel to communicate with CEP?
>
> Yes, to deploy the queries and to send and receive events

>
>1. Should the Siddhi Python API require WSO2 CEP to be running in
>order to make Python API usable?
>
> Not necessay it should both work with the running CEP/DAS and use Siddhi
library in the ohter cases.

>
>1. Is the Python API expected to do configuring of Siddhi CEP,
>streaming events to/from Siddhi CEP, or both?
>
> Yes in terms of queries.



> Thank You
>
>
> --
> *Madhawa Vidanapathirana*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> Mobile: (+94) 716874425 <071%20687%204425>
> Email: madhawavidanapathir...@gmail.com
> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-11 Thread Madhawa Vidanapathirana
Hi.

I am an undergraduate from Department of Computer Science and Engineering,
University of Moratuwa. I recently completed my internship at WSO2 working
with the Support Team on the project WSO2 Support Knowledge Base.

I am interested on GSOC Project* "Proposal 16: Python API for Siddhi CEP"*.
My internship project at WSO2 was almost entirely done using Python.
Additionally, I used Py4J Framework to interface certain parts of the
project to JAVA APIs. Furthermore, I have a certain amount of exposure with
Siddhi/CEP through the WHACK project I took part.

I went through the provided details in WSO2 GSOC 2017 Project List page and
I am interested to know some more details.

   1. What version of CEP/Siddhi should be used by the API?
   2. In the description, does "Service APIs" refer to "Admin Services API"
   which is usually used by Admin Panel to communicate with CEP?
   3. Should the Siddhi Python API require WSO2 CEP to be running in order
   to make Python API usable?
   4. Is the Python API expected to do configuring of Siddhi CEP, streaming
   events to/from Siddhi CEP, or both?

Thank You


-- 
*Madhawa Vidanapathirana*
Student
Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka

Mobile: (+94) 716874425
Email: madhawavidanapathir...@gmail.com
Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev