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

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

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

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

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

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] -

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

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

2017-05-19 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

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

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

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

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

2017-05-07 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

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

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

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

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

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

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 <

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

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.

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

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

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

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

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

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

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]

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] -

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

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

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