Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cognite_kuiper-0.19.1-cp314-cp314-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.14Windows x86-64

cognite_kuiper-0.19.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.19.1-cp314-cp314-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

cognite_kuiper-0.19.1-cp314-cp314-macosx_10_12_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

cognite_kuiper-0.19.1-cp313-cp313-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.13Windows x86-64

cognite_kuiper-0.19.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.19.1-cp313-cp313-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

cognite_kuiper-0.19.1-cp313-cp313-macosx_10_12_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

cognite_kuiper-0.19.1-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

cognite_kuiper-0.19.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.19.1-cp312-cp312-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

cognite_kuiper-0.19.1-cp312-cp312-macosx_10_12_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

Details for the file cognite_kuiper-0.19.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.19.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a95d088fdf3b6cc0b5c28ae78f07777a093d1b80f2675c3276ee8c01ccf940ec
MD5 f9f62c092a539c28fcbc6bea6849b0cf
BLAKE2b-256 360e9026e1b4bc7f9a70d98e722032e34464991601f9cfd6ba0f717dd92b38ca

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.19.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.19.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 98e4875dbb00f619e5a0b7fce3f54d1bb5e45a2a8c1ee750d958e8199f985bb9
MD5 4bda2a4f290ade9b6b24b73185f36e11
BLAKE2b-256 b14cfa9d292c14c9b175a15b32b65c7e692831d79c31153c55e740a977258021

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.19.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.19.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7302065114328c387d66cbd609974eadb78a42817758a2640fdd5faf38342485
MD5 d9aa0db56cdfd9ad59aca896fb881917
BLAKE2b-256 b6a731412f9bf961bfcd50ab20da021e7e62f8328c429bd50e1f1c50c2938a59

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.19.1-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.19.1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ea867ddde286017d802f1d27ba01ba8cd812df669b60a90e9bf8b1d0bfe03261
MD5 e29b40c5efe9e9f187871393d7a890a6
BLAKE2b-256 2f6920dc4a4c26f3e5508b55b25027574ae2a57f89e125f97eac14eb12219503

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.19.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.19.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ccbf4ee7340e240d09930039441ad8c4f918fee021185b601d25876b0b4a0ae1
MD5 bf68a0866d47f832191d2314fa14c5fc
BLAKE2b-256 6039c3bbc6a04974bc7f22ac9e5a32760438ebb4969e6df37efc2a01dbf05997

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.19.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.19.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d26025bb2fb1251d0a47afc7801a6e9c81e7d7b0a24f38465aa5d7bc0cafa95
MD5 2e0096ed97ea7e8cebb52ad5116da7b9
BLAKE2b-256 2e37261a887a8e6d92873b88c36c9becca2c142f09dc89270e0022db57eaeb61

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.19.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.19.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5059ede48435108b39f73bc476b0a4d45331c775219af7c94743ed3359abd4c2
MD5 e7830b90d3e5a8dd6fdd6d1be776327c
BLAKE2b-256 e48cd8c8b17ed8e272df18dd5428ca5ab081fd61b3fa3294fb07f4ddf2bfe0b4

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.19.1-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.19.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3b37238cb9d97ad5abbdf3fde37415fa590014f5552ee9f9c8e9c975d06736d6
MD5 ed4950d5d0d97364b298b0f27b964625
BLAKE2b-256 163f4245fc8d75c22406a3b4e68ebe99a86b441fb7504fb25577d7615dfffb76

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.19.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.19.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 424254334f9db454e3cde7afe6ce6c5d9bd4b2b17e8ca49df62a262a1992edcb
MD5 f2a0e40e7d3cdd3ecde554d51b4a610e
BLAKE2b-256 6d7155772a7d7d4296ef17fead0b934ba1fc803f14dd3f21e6648374ea1a121f

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.19.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.19.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d4c8aba04a07b61c50a48bd926d2acdda646d0c709bf9d1b7404caf4d244c84b
MD5 4f5d4f3148e3d574a0d8caf451da8c10
BLAKE2b-256 ceb0e7e60d3e44ad79b91b57e39680f603b33a247337ba0549707358160fd357

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.19.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.19.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8eb6dd4b29942b2461d04955f5cf8e53acca93525e4e64c85004e9bba975859c
MD5 db8f39b15f53d35302f3da31eefec5ab
BLAKE2b-256 8b0ac8ad12bfe52ad98868a0136f45cb552304bdf4e0545d87f484602df58e6d

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.19.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.19.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 65ee8033f0c621d8d6525fa2aa8b6887d9710b0dc00898bda803cdc3da7e178b
MD5 938ef51f34afce26cb54c61c04c1b7c8
BLAKE2b-256 0298be3b8f020a983045073ae8e8658715be54f5ef93a89b7e62d8e2f0361057

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page