Skip to main content

qPython (NumPy 2.0 Compatible Fork)

This is a fork of finos/qPython with NumPy 2.0 compatibility fixes applied.

Changes made:

  • Date: 2025-01-24

  • Fix: Replaced all numpy.string_ with numpy.bytes_ for NumPy 2.0 compatibility, also NaN with nan, etc

  • Original qPython version: Latest from finos/qPython as of fork date

For the original project and full documentation, see: https://github.com/finos/qPython


qPython (Original README below)

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

CVE Scanning

Configured GitHub Action as per the “Python” section of:

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

Metadata

Release files for gabiteodoru-qpython 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gabiteodoru-qpython 2.0.0
File Size Uploaded
gabiteodoru_qpython-2.0.0.tar.gz 29.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gabiteodoru-qpython 2.0.0
File Interpreter ABI Platform
gabiteodoru_qpython-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 71.8 kB

Release files / gabiteodoru_qpython-2.0.0.tar.gz

Download URL gabiteodoru_qpython-2.0.0.tar.gz
Size 29.4 kB
Tags Source
SHA-256 checksum
How to use checksums
87de5ec0ca64336878874013d0e24d32602d62929b10d33acaab5575348a57e0
BLAKE2b-256 checksum
How to use checksums
1714452129e2cbe2bab6b5c05fe27bdbe52683ff676ebdbdb44046c92e801d86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / gabiteodoru_qpython-2.0.0-py3-none-any.whl

Download URL gabiteodoru_qpython-2.0.0-py3-none-any.whl
Size 42.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e01db9c1f2d7ab2be413c9d7e8457dc627759435f2a04bed3679f9630c4b9ccf
BLAKE2b-256 checksum
How to use checksums
67600aefe3d2ad947b96c5a75285aed961d79801f179821c4bc452e4fd64192e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page