Guys,I know that there exist a library pyQ to access q inside python. Isthere a way to access python inside q ?Thanks,Anshul
So, looks like there isnt a solution anybody is aware of ?Thanks,AnshulOn Mar 4, 11:03?am, Anshul <a.khandel…> wrote:> Guys,>> I know that there exist a library pyQ to access q inside python. Is> there a way to access python inside q ?>> Thanks,> Anshul</a.khandel…>
So, looks like there isnt a solution anybody is aware of ?Thanks,AnshulOn Mar 4, 11:03?am, Anshul <a.khandel…> wrote:> Guys,>> I know that there exist a library pyQ to access q inside python. Is> there a way to access python inside q ?>> Thanks,> Anshul</a.khandel…>
On 4 Mrz., 17:03, Anshul <a.khandel…> wrote:>>Is there a way to access python inside q ?>From what i have heard is that you can only extend q by c. So if youwrap all the python functions that you are interested in c, then youcan access it inside q.HTHKim</a.khandel…>
>>Is there a way to access python inside q ?>> From what i have heard is that you can only extend q by c. So if you> wrap all the python functions that you are interested in c, then you> can access it inside q.yeah - and it’s a lot easier to embed python than to extend it.http://docs.python.org/extending/embedding.htmlta, jack.
Anshul,
I recall seeing (somewhere) someone having done some work on calling
Python from q and q from Python complete with benchmarks. q did
everything at least 10 times faster than Python (it might have been
100 in some cases if I recall correctly). Unless you have existing
Python code that you have to leverage, I’d suggest writing your code
in q if you can.
Tim
Hi Anshul,Can you please post a link to pyQ for q inside python.I’m using Matt Warren’s qPy to get data from kdb. But its too slow tohandle half a million rows of my query.Thanks,PunsOn Mar 5, 1:03?am, Anshul <a.khandel…> wrote:> Guys,>> I know that there exist a library pyQ to access q inside python. Is> there a way to access python inside q ?>> Thanks,> Anshul</a.khandel…>
there’s an optimization that can make a big
difference, but it may involve working on the qpy
C code. it is using NumPy (stores arrays instead
of python lists - just pre-allocate the array and
write the data in).
Yes, I’d be interested in links to either qpy or pyQ. Also, do theywork with the KDB 32bit version under windows? I’d imagine they needa DLL and the win32 version doesn’t supply a DLL I don’t think (justan exe)On Mar 10, 2:29?pm, Puns <punit.ty…> wrote:> Hi Anshul,> Can you please post a link to pyQ for q inside python.> I’m using Matt Warren’s qPy to get data from kdb. ?But its too slow to> handle half a million rows of my query.>> Thanks,> Puns>> On Mar 5, 1:03?am, Anshul <a.khandel…> wrote:>> > Guys,>> > I know that there exist a library pyQ to access q inside python. Is> > there a way to access python inside q ?>> > Thanks,> > Anshul</a.khandel…></punit.ty…>
Hi Tim,
I agree with you. But it is just that there are some minor dependencies on python code which I would have wanted to wrap inside q.
Thanks,
Anshul