PyQ - Python for kdb+
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
Metadata
Release files for pyq 5.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyq-5.0.0.tar.gz | 103.3 kB | Without provenance | Details for pyq-5.0.0.tar.gz |
Release files / pyq-5.0.0.tar.gz
| Download URL | pyq-5.0.0.tar.gz |
|---|---|
| Size | 103.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32393dd7233d0e7051702214b8cb262c670baa8da339cc916b512dfe1f64af94
|
|
BLAKE2b-256 checksum How to use checksums |
c3b704548473251855536103eb46df9dc09dc678ca7f9fe7648411de6adb7e65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pyq 5.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.