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.

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

Project details


Download files

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

Source Distribution

pyq-5.0.0rc7.tar.gz (103.4 kB view details)

Uploaded Source

File details

Details for the file pyq-5.0.0rc7.tar.gz.

File metadata

  • Download URL: pyq-5.0.0rc7.tar.gz
  • Upload date:
  • Size: 103.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.3

File hashes

Hashes for pyq-5.0.0rc7.tar.gz
Algorithm Hash digest
SHA256 845e1d4efb1ff0e5fe69924d16117eba0471a84fb0d35066b08abd048ca8a8be
MD5 d656febaa61db7ff9b13092ace8132fe
BLAKE2b-256 5b34066562f4a532cc2e6cf9bafca9d8f38f67bacf11ed57fa48a2ec207bb831

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page