Skip to main content

PyQ - Python for kdb+

Project description

PyQ - Python for kdb+

PyPI Version Build Status Windows build status

Total alerts Language grade: Python Language grade: C/C++ Codecov

PyQ brings the Python programming language to the kdb+ database. Part of the Fusion for kdb+ interface collection.

It allows developers to integrate Python and q codes seamlessly in one application. This is achieved by bringing the Python and q interpreters into the same process so that code written in either of the languages operates on the same data. In PyQ, Python and q objects live in the same memory space and share the same data.

Please report issues in this repository.


pip install pyq

See detailed installation instructions.


For Python programmers:

$ pyq
>>> from pyq import q
>>> 1 + q.til(10)
k('1 2 3 4 5 6 7 8 9 10')

or run your Python script as

pyq [python options] python-script

For q programmers:

$ q
q)p)from math import hypot  / prefix python code with p)
q)p)q.h = hypot             / import a python function
q)h 3 4                     / call the python function from q


Documentation is available on the PyQ homepage.


Use tox to run tests.

cd path/to/pyq/source

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyq, version 5.0.0
Filename, size File type Python version Upload date Hashes
Filename, size pyq-5.0.0.tar.gz (103.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page