Skip to content
PyQ — Python for kdb+
Branch: master
Clone or download
Latest commit 572578f May 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update ISSUE_TEMPLATE.md May 11, 2018
.travis * Test with numpy only on Linux. Jul 4, 2018
doc PyQ Release 4.2.1 Feb 12, 2019
embedPy @ 6b07a5a PyQ Release 4.2.0 Feb 11, 2019
src PyQ Release 4.2.0 Feb 11, 2019
.appveyor.yml Create .appveyor.yml Jul 6, 2018
.clang-format PyQ Release 4.1.3 Mar 6, 2018
.coveragerc PyQ Release 4.1.0 Aug 30, 2017
.gitattributes MNT #000 Configure language for .k and .q files May 2, 2018
.gitignore PyQ Release 4.1.4 Jun 18, 2018
.gitmodules PyQ Release 4.2.0 Feb 11, 2019
.mailmap PyQ Release 4.1.3 Mar 6, 2018
.travis.yml * Test with numpy only on Linux. Jul 4, 2018
AUTHORS.md PyQ Release 4.2.0 Feb 11, 2019
HISTORY.md /v2/ for /q/ at code.kx.com May 14, 2019
LICENSE Create LICENSE Nov 7, 2017
MANIFEST.in PyQ Release 4.2.0 Feb 11, 2019
README.md Changed code.kx.com/q => code.kx.com/v2 Apr 16, 2019
ci.sh PyQ Release 4.1.0 Aug 30, 2017
lgtm.yml Multiple CI improvements Jul 4, 2018
lic.py
meta.yaml PyQ Release 4.1.4 Jun 18, 2018
pytest.ini PyQ Release 4.0 Mar 2, 2017
run_q.sh PyQ Release 4.2.0 Feb 11, 2019
setup.py PyQ Release 4.2.1 Feb 12, 2019
test_setup.py PyQ Release 4.1.0 Aug 30, 2017
tox-install.sh PyQ Release 4.2.0 Feb 11, 2019
tox.ini PyQ Release 4.2.0 Feb 11, 2019

README.md

PyQ - Python for kdb+

Build Status Windows build status

PyPI Version LGTM Alerts LGTM Grade 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.

Installation

pip install pyq

See detailed installation instructions.

Usage

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
5f

Documentation

Documentation is available on the PyQ homepage.

Testing

Use tox to run tests.

cd path/to/pyq/source
tox
You can’t perform that action at this time.