kdb+ interfacing library for Python
Project description
qPython is a Python library providing support for interprocess communication between Python and kdb+ processes, it offers:
Synchronous and asynchronous queries
Convenient asynchronous callbacks mechanism
Support for kdb+ protocol and types as of kdb+ v4.0
Uncompression of the IPC data stream
Internal representation of data via numpy arrays (lists, complex types) and numpy data types (atoms)
Supported on Python 3.4/3.5/3.6 and numpy 1.8+
For more details please refer to the documentation.
Installation
To install qPython from PyPI:
$ pip install qpython3
Please do not use old PyPI package name: qpython or exxeleron-qpython.
Building package
Documentation
qPython documentation is generated with help of Sphinx document generator. In order to build the documentation, including the API docs, execute: make html from the doc directory.
Documentation is built into the: doc/build/html/ directory.
Compile Cython extensions
qPython utilizes Cython to tune performance critical parts of the code.
Instructions:
Execute: python setup.py build_ext --inplace
Build binary distribution
Instructions:
Execute: python setup.py bdist
Testing
qPython uses py.test as a test runner for unit tests.
Instructions:
Make sure that top directory is included in the PYTHONPATH
Execute: py.test
Requirements
qPython requires numpy 1.8 to run.
Optional requirements have to be met to provide additional features:
tune performance of critical parts of the code:
Cython 0.20.1
support serialization/deserialization of pandas.Series and pandas.DataFrame
pandas 0.14.0
run Twisted sample:
Twisted 13.2.0
build documentation via Sphinx:
Sphinx 1.2.3
mock 1.0.1
Required libraries can be installed using pip.
To install all the required dependencies, execute: pip install -r requirements.txt
Minimal set of required dependencies can be installed by executing: pip install -r requirements-minimal.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for qPython3-1.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb594c4742149974fa0947d4aba1e2c89b7df978fa8d571112165a4e6062b4be |
|
MD5 | 90d8c2ac05029822626749e74f46a2c5 |
|
BLAKE2b-256 | e0234fef2896a29a78d64a7bf02b74551b90fe4c5581d98c744b0cd09b96b909 |
Hashes for qPython3-1.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 234c98f6adfa029648f73eee46ffdb8694fe3d108f169971ed00d876834cf8df |
|
MD5 | 47328bb761586fb3f86aa3fc70622370 |
|
BLAKE2b-256 | 7d5b1bbcf9957f6ef5c332cc91f094441b5afd6c3dc9aec40f2acf2a3e94a4a1 |
Hashes for qPython3-1.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1948000e985d6db4988eab018ecf50dae28e4131b68d44eec147048b1eb3f184 |
|
MD5 | 79285fc8c8e78545ad421da667ac37eb |
|
BLAKE2b-256 | 49b585b141567985b05f985644c2090d227fcacfe6cf54ba2059b5640ebcdeac |
Hashes for qPython3-1.0.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c722ab8d06a68f33bce59fde55283b98e3d5e9b715acdc72549b3f8d334020b |
|
MD5 | ede1acfef3493f691bb82fc22d2dc9a4 |
|
BLAKE2b-256 | 5ecb08fb9fe2e07122a1027ffa1b057ff37e938e628baf25e3f1a8213fa1f833 |