Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python and kdb integration [closed]

Tags:

python

kdb

What are available tools/libraries to integrate Python with kdb?

like image 874
Leonid Avatar asked Jun 11 '11 20:06

Leonid


3 Answers

The timestored website has a guide to the python apis for kdb complete with videos. http://timestored.com/kdbGuides/pythonApi

To summarize your options:

  1. Dan Nugents Python Library - Still maintained API for pulling data into Python <=v2.6 from a kdb server. Faster than qpy.
  2. qpy - Original API that was based on kx.com's java API. Slower than Dans but nicer formatting of tables when printed.
  3. PyQ - Brings Python and Q interpreters into the same process and allows code written in either of the languages to operate on the same data. Supports Python 2.7 and 3.x and all versions of kdb+.
  4. qPython - Newest API, supporting Python 2.7
like image 134
John at TimeStored Avatar answered Nov 14 '22 03:11

John at TimeStored


I also found http://www.kx.com/a/k/connect/python/, along with http://bitbucket.org/halotis/qpy. I haven't used either.

like image 4
jcomeau_ictx Avatar answered Nov 14 '22 03:11

jcomeau_ictx


there's also Dan Nugent's https://github.com/DannoHung/q

also note that, as with perl, sometimes the formatted export over the web socket is sufficient -- just GET http://SERVER.example:PORT/FMT?QUERY, where FMT is any of csv/txt/xml/xls (e.g. http://localhost:5050/csv?table)

like image 1
Aaron Davies Avatar answered Nov 14 '22 04:11

Aaron Davies