Skip to main content

Python bindings for Kuiper

Python bindings for Kuiper so you can compile and run transformations from a Python runtime.

The language itself is documented here.

from kuiper import compile_expression

expression = compile_expression('{"theAnswer": input.numericValue + 27}', ["input"])
value = expression.run('{"numericValue": 15}')
print(value)

The compile_expression function might raise a KuiperCompileError, and otherwise returns a KuiperExpression object. The KuiperExpression.run(...) method might raise a KuiperRuntimeError. Both of these exceptions are subclasses of the KuiperError base class.

The packakge is available on PyPI. To use it in your project, add it to your project file with your project manager of choice. For example, using uv:

uv add cognite-kuiper

Development

We use PyO3 to create the bindings.

This project uses uv to manage dependencies and such. To set up your local development environment, first make sure uv is installed:

pip install -U uv

uv will automatically recompile the Rust code whenever it changes and install it in the virual environment.

To run the test suite, run

uv run pytest

Metadata

Release files for cognite-kuiper 0.19.1

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

Built distributions (wheels)

Table of built distributions (wheels) for cognite-kuiper 0.19.1
File
cognite_kuiper-0.19.1-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
cognite_kuiper-0.19.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details
cognite_kuiper-0.19.1-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
cognite_kuiper-0.19.1-cp314-cp314-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 macOS 10.12+ x86-64 Details
cognite_kuiper-0.19.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
cognite_kuiper-0.19.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
cognite_kuiper-0.19.1-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
cognite_kuiper-0.19.1-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details
cognite_kuiper-0.19.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
cognite_kuiper-0.19.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
cognite_kuiper-0.19.1-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
cognite_kuiper-0.19.1-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details

Total release size: 19.0 MB

Release files / cognite_kuiper-0.19.1-cp314-cp314-win_amd64.whl

Download URL cognite_kuiper-0.19.1-cp314-cp314-win_amd64.whl
Size 1.4 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
a95d088fdf3b6cc0b5c28ae78f07777a093d1b80f2675c3276ee8c01ccf940ec
BLAKE2b-256 checksum
How to use checksums
360e9026e1b4bc7f9a70d98e722032e34464991601f9cfd6ba0f717dd92b38ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cognite_kuiper-0.19.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cognite_kuiper-0.19.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.8 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
98e4875dbb00f619e5a0b7fce3f54d1bb5e45a2a8c1ee750d958e8199f985bb9
BLAKE2b-256 checksum
How to use checksums
b14cfa9d292c14c9b175a15b32b65c7e692831d79c31153c55e740a977258021
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cognite_kuiper-0.19.1-cp314-cp314-macosx_11_0_arm64.whl

Download URL cognite_kuiper-0.19.1-cp314-cp314-macosx_11_0_arm64.whl
Size 1.5 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7302065114328c387d66cbd609974eadb78a42817758a2640fdd5faf38342485
BLAKE2b-256 checksum
How to use checksums
b6a731412f9bf961bfcd50ab20da021e7e62f8328c429bd50e1f1c50c2938a59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cognite_kuiper-0.19.1-cp314-cp314-macosx_10_12_x86_64.whl

Download URL cognite_kuiper-0.19.1-cp314-cp314-macosx_10_12_x86_64.whl
Size 1.6 MB
Tags CPython 3.14 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ea867ddde286017d802f1d27ba01ba8cd812df669b60a90e9bf8b1d0bfe03261
BLAKE2b-256 checksum
How to use checksums
2f6920dc4a4c26f3e5508b55b25027574ae2a57f89e125f97eac14eb12219503
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cognite_kuiper-0.19.1-cp313-cp313-win_amd64.whl

Download URL cognite_kuiper-0.19.1-cp313-cp313-win_amd64.whl
Size 1.4 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
ccbf4ee7340e240d09930039441ad8c4f918fee021185b601d25876b0b4a0ae1
BLAKE2b-256 checksum
How to use checksums
6039c3bbc6a04974bc7f22ac9e5a32760438ebb4969e6df37efc2a01dbf05997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cognite_kuiper-0.19.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cognite_kuiper-0.19.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.8 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6d26025bb2fb1251d0a47afc7801a6e9c81e7d7b0a24f38465aa5d7bc0cafa95
BLAKE2b-256 checksum
How to use checksums
2e37261a887a8e6d92873b88c36c9becca2c142f09dc89270e0022db57eaeb61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cognite_kuiper-0.19.1-cp313-cp313-macosx_11_0_arm64.whl

Download URL cognite_kuiper-0.19.1-cp313-cp313-macosx_11_0_arm64.whl
Size 1.5 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5059ede48435108b39f73bc476b0a4d45331c775219af7c94743ed3359abd4c2
BLAKE2b-256 checksum
How to use checksums
e48cd8c8b17ed8e272df18dd5428ca5ab081fd61b3fa3294fb07f4ddf2bfe0b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cognite_kuiper-0.19.1-cp313-cp313-macosx_10_12_x86_64.whl

Download URL cognite_kuiper-0.19.1-cp313-cp313-macosx_10_12_x86_64.whl
Size 1.6 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
3b37238cb9d97ad5abbdf3fde37415fa590014f5552ee9f9c8e9c975d06736d6
BLAKE2b-256 checksum
How to use checksums
163f4245fc8d75c22406a3b4e68ebe99a86b441fb7504fb25577d7615dfffb76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cognite_kuiper-0.19.1-cp312-cp312-win_amd64.whl

Download URL cognite_kuiper-0.19.1-cp312-cp312-win_amd64.whl
Size 1.4 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
424254334f9db454e3cde7afe6ce6c5d9bd4b2b17e8ca49df62a262a1992edcb
BLAKE2b-256 checksum
How to use checksums
6d7155772a7d7d4296ef17fead0b934ba1fc803f14dd3f21e6648374ea1a121f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cognite_kuiper-0.19.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cognite_kuiper-0.19.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.8 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d4c8aba04a07b61c50a48bd926d2acdda646d0c709bf9d1b7404caf4d244c84b
BLAKE2b-256 checksum
How to use checksums
ceb0e7e60d3e44ad79b91b57e39680f603b33a247337ba0549707358160fd357
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cognite_kuiper-0.19.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL cognite_kuiper-0.19.1-cp312-cp312-macosx_11_0_arm64.whl
Size 1.5 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8eb6dd4b29942b2461d04955f5cf8e53acca93525e4e64c85004e9bba975859c
BLAKE2b-256 checksum
How to use checksums
8b0ac8ad12bfe52ad98868a0136f45cb552304bdf4e0545d87f484602df58e6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cognite_kuiper-0.19.1-cp312-cp312-macosx_10_12_x86_64.whl

Download URL cognite_kuiper-0.19.1-cp312-cp312-macosx_10_12_x86_64.whl
Size 1.6 MB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
65ee8033f0c621d8d6525fa2aa8b6887d9710b0dc00898bda803cdc3da7e178b
BLAKE2b-256 checksum
How to use checksums
0298be3b8f020a983045073ae8e8658715be54f5ef93a89b7e62d8e2f0361057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3
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