Modules Overview¶
This page explains what modules are, why they matter, and introduces the available modules.
What are modules¶
Modules are a unit of encapsulation in KDB-X. They have access to their own local namespace that can contain internal and external functions and variables for the module, as opposed to designating a fixed global namespace as it is often done for pre-module libraries.
The modules can expose variables and functions using the export variable, which can then be imported by code with the use function and assigned to an arbitrary name. Modules can be written in q or using the C API.
Use the module framework to build, import, and manage modules in KDB-X.
Module manifest¶
The tables below list some of the modules available for KDB-X, grouped by purpose, including closed-source KX modules, downloadable KX modules, and some open-source modules.
Info
The GPU module requires an additional purchase on top of KDB-X. All other KX modules are available for free in the KDB-X community edition.
Data and storage¶
| Module name | Description | Owner | Latest version |
|---|---|---|---|
| Parquet | A columnar storage format optimized for efficient querying and analytics on large datasets. | KX | 1.0.0 |
| Object Storage | Enables scalable queries through seamless cloud object storage access. | KX | 1.1.2 |
| DBmaint | Utility functions for maintaining splayed and partitioned KDB-X database tables. | OS | 2.0.0 |
| Taq | High-performance utility for parsing NYSE TAQ (Trade and Quote) PSV files. | OS | 2.1.0 |
| Datagen | Functions for generating synthetic data for various domains. | OS | 2.1.0 |
AI and GPU acceleration¶
| Module name | Description | Owner | Latest version |
|---|---|---|---|
| AI Libraries | AI module for summarizing information, assisting users, and solving complex problems across various industries. | KX | 1.0.0 |
| GPU | GPU acceleration for KDB-X. | KX | 2.9.0 |
| cuVS | CUDA-accelerated approximate vector search using Nvidia cuVS and the CAGRA algorithm. | KX | 1.0.0 |
Connectivity and integration¶
| Module name | Description | Owner | Latest version |
|---|---|---|---|
| OneTick Cloud | Queries OneTick Cloud market data from KDB-X and returns results as q tables. | KX | 1.0.0 |
| Kurl | Provides a simple way to interact with KDB-X using REST APIs. | KX | 1.0.4 |
| REST Server | Exposes KDB-X functionality over a RESTful API. | KX | 1.0.2 |
| AWS SDK | Includes functions to authenticate using the AWS C++ SDK. | OS | 0.0.2 |
Developer tools and utilities¶
| Module name | Description | Owner | Latest version |
|---|---|---|---|
| OS | OS low-level functionality | KX | |
| qmamba | A package manager for KDB-X modules. | OS | 0.0.2 |
| Printf | Replicates a subset of the C99 printf standard to format strings. | OS | 1.0.0 |
| Logging | Provides logging capabilities for KDB-X applications. | OS | 1.0.0 |
| Unit Test | Testing framework for q code with assertions, mocking, and JUnit output. | OS | 1.0.1 |
| ax | Collection of q libraries used for visualizations and documentation. | OS | 1.1.0 |
| Fusionx | Simplifies the use of native libraries within a q environment. Includes Blas, Regex, and Expat. | OS | 1.2.0 |
How to get modules¶
| Module(s) | Software packaging | How to get it |
|---|---|---|
| Parquet, Object Storage, SQL, Kurl, REST Server |
KDB-X – Community Edition (CE), Core (KXC), Suite (KXS) | Bundled with KDB-X, KX downloads portal |
| AI Libraries | KDB-X – Community Edition (CE), AI & Agent Services (XAA), Suite (KXS) | Bundled with KDB-X, KX downloads portal |
| cuVS | KDB-X – Community Edition (CE), AI & Agent Services (XAA), Suite (KXS) | KX downloads portal |
| OneTick | KDB-X – Community Edition (CE), Core (KXC), Suite (KXS) | KX downloads portal |
| GPU | GPU Acceleration add-on (KXG) | Email devrel@kx.com to evaluate |
| Datagen, Taq, DBmaint, Printf, Logging, Unit Test, ax, Fusionx | Open source | GitHub |