A JSON to JSON transform and templating language from Cognite
Project description
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
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 Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cognite_kuiper-0.19.0-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: cognite_kuiper-0.19.0-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df33e08f73f7179c3fe12d1893f4b9ce887ebf9d537f721f90bc5075fdab6913
|
|
| MD5 |
7a1dced607f6b7d5df6d99c2f321b33f
|
|
| BLAKE2b-256 |
8b6ecb39e70dbddf757bad6e8c4cf79592f32759f4f9fd94e0f7212e05277996
|
File details
Details for the file cognite_kuiper-0.19.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cognite_kuiper-0.19.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e9646df38f4a5676d080d0af4a5e65a99f9495567840f8f2ac4521fb70a547b
|
|
| MD5 |
2816118dc368c2ccc2471fb8f9918697
|
|
| BLAKE2b-256 |
f99348f5bba257ffbff56b5c5fe70bc95fcb42d141ecc52dcc5aa82fdd07edf5
|
File details
Details for the file cognite_kuiper-0.19.0-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: cognite_kuiper-0.19.0-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c808df4645dd7b52e5cab0afe35809ae955a7376646ff5c21dc26f9e55f3be30
|
|
| MD5 |
bba7985eff27ad8b3e4e8f0ec4b534dd
|
|
| BLAKE2b-256 |
43a383d905b185064caaba562611c97acd47d850cb2be45296fd08bd836796d7
|
File details
Details for the file cognite_kuiper-0.19.0-cp314-cp314-macosx_10_12_x86_64.whl.
File metadata
- Download URL: cognite_kuiper-0.19.0-cp314-cp314-macosx_10_12_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.14, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbf860c681ab9db5d010ce06b904dbbe203493640531eef92d8265a2333e8450
|
|
| MD5 |
82c405efea50dc7a46d127e0b1b56b0d
|
|
| BLAKE2b-256 |
9242d0546ea72e060bc83fd40c9f4eea58cf505056ba0cbfd21872553db53592
|
File details
Details for the file cognite_kuiper-0.19.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: cognite_kuiper-0.19.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7846ee8dbc2492efd463ec71866087509a9386e86c195edf7f29d900522375c
|
|
| MD5 |
00eca60bfaccb24cf113bdc79b54452e
|
|
| BLAKE2b-256 |
7b869486febb486320d3e06348351fa41750ae2feb32d33bad2a506a82e1bf66
|
File details
Details for the file cognite_kuiper-0.19.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cognite_kuiper-0.19.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c63940f790ed5e6924e9f7d3caca8ee3422786a5855257a8a94ab165472b7506
|
|
| MD5 |
cb5c2588e06f4555c68bcf0541ab4b01
|
|
| BLAKE2b-256 |
7fa1bb6eb9961a45ff945b47e5d8e49fd8d0387df505dbdde8260e54076de9f7
|
File details
Details for the file cognite_kuiper-0.19.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: cognite_kuiper-0.19.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56716174276650cb4e06ef54fce43bc2e91f7d6d94df95e40717c9480245ca96
|
|
| MD5 |
d64d73e9ce97a5aa8c71679cef1b54d8
|
|
| BLAKE2b-256 |
4c6ab6412872c8ae49ca624767c1890cfb6a4bfdffefc558e4dfb2a6454297b5
|
File details
Details for the file cognite_kuiper-0.19.0-cp313-cp313-macosx_10_12_x86_64.whl.
File metadata
- Download URL: cognite_kuiper-0.19.0-cp313-cp313-macosx_10_12_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.13, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7793eae5cc594edbbb4ab1030e046ef66a24c5e9f2843ba65bc8dbb85d6ace95
|
|
| MD5 |
8bfb52f08e27d76a337fc32b44ed092c
|
|
| BLAKE2b-256 |
74aaa001ad03ceed713d61cd5811ab84363223f00a984fc39c56cc272b6031d6
|
File details
Details for the file cognite_kuiper-0.19.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: cognite_kuiper-0.19.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c3a6632bd818c37deccdd69d188aa0496033beaef776b7ccc5301c8bb5af691
|
|
| MD5 |
a131d26dbf18b846a4fe78847fd49a75
|
|
| BLAKE2b-256 |
13da6ed998faa414da83d22b5c37fcafacfcd816317fea1d773a90b1404f6a4d
|
File details
Details for the file cognite_kuiper-0.19.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cognite_kuiper-0.19.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c590b5d331794c21dde305cbf25c8c253372feed30741016338871ea58983887
|
|
| MD5 |
ee51a1d22fb055b3d09f03e812fa44bd
|
|
| BLAKE2b-256 |
cf0da291ec8c0f40867cc6c0c496dece3cc62996e26dc1548ebbab61cbdfafeb
|
File details
Details for the file cognite_kuiper-0.19.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: cognite_kuiper-0.19.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c62cb5623d2f88dc398214c62cc780d1615efb6ee94fef7b3a755795295280c
|
|
| MD5 |
888db51861571822c642d3c5a34207e3
|
|
| BLAKE2b-256 |
b580f9c926c2932a5de3b0ac8ecb4f68c565083cd989919bc112bb9081927586
|
File details
Details for the file cognite_kuiper-0.19.0-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: cognite_kuiper-0.19.0-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b62acbfec1aae837dd540601c4b86e652ed5da450f369e9eecca3022107267f1
|
|
| MD5 |
6249e603857b300d31f31febf9ad1afc
|
|
| BLAKE2b-256 |
5725ad6e9d4a039834789164097873cf66b6314f92f5b91cc3e8593deb0b16d0
|