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 maturin to manage dependencies and such. To set up your local development environment, first make sure maturin is installed:

pip install -U maturin

Then, you can enter or exit a virtual environment with the kuiper package installed by sourcing the enter.sh or exit.sh scripts:

source enter.sh
source exit.sh

Whenever you change the code, you need to rebuild. Instead of using cargo directly, use maturin:

maturin develop

This will build and install the python package into the current environment, which is the virtual environment created by the enter.sh script.

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.18.2-cp314-cp314-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.14Windows x86-64

cognite_kuiper-0.18.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.18.2-cp314-cp314-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

cognite_kuiper-0.18.2-cp314-cp314-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

cognite_kuiper-0.18.2-cp313-cp313-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86-64

cognite_kuiper-0.18.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.18.2-cp313-cp313-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

cognite_kuiper-0.18.2-cp313-cp313-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

cognite_kuiper-0.18.2-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

cognite_kuiper-0.18.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.18.2-cp312-cp312-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

cognite_kuiper-0.18.2-cp312-cp312-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

cognite_kuiper-0.18.2-cp311-cp311-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.11Windows x86-64

cognite_kuiper-0.18.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.18.2-cp311-cp311-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

cognite_kuiper-0.18.2-cp311-cp311-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

cognite_kuiper-0.18.2-cp310-cp310-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.10Windows x86-64

cognite_kuiper-0.18.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.18.2-cp310-cp310-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

cognite_kuiper-0.18.2-cp310-cp310-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f9611d7629846cda23fa4a36e77baf482727f2c7b7ea15adeba5503235596940
MD5 c89fb586f9a864e0ba5b649b49492628
BLAKE2b-256 29fb06fe955cc8e8378fbdcf992749e1371c18a73e0acaddc55e55b31da81437

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e4b3816f1e1736ff39d1487886a80afc66c2f78c5a72634afac233fa6b641700
MD5 885a49b1ec7dcd60ed3065ff0b12ff5f
BLAKE2b-256 d8cae1ea0788774a29f8df1873d61ca94a500aeba2eb6bd2dc1194b450d344bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c9074e03d3585411e3c49d86e964f08685542990d8da3d2fb7908105cbfa2b7
MD5 077dba54240fbdfacd03ea5c4693b812
BLAKE2b-256 18f1af7545a4ccff6293b7eaceacb3da05f3a63b53fe0a6a99ea0487402abb9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 35136812e8471c01784c6ea936c5e5385edff79ccc66da384d87d0920e87e72f
MD5 87b91a8c48b1fcfbba8c896aaf85f78e
BLAKE2b-256 bae2ddaafa6ec6fbd0b8a753f1c8f036d5cdf1419546fe1d6e5339d1156b38e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 afbf020f4134c0da8edcca4212eca20e08bb3fcf69a2a0c9e3de25a4ffb57545
MD5 4d4925eeb5a6b01bd7c6203b4a320c8e
BLAKE2b-256 b92dfd9d793158d5ae390889afeff235a9091734513dd5a318d2e013b1af72f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0ebe15eb4d787ab1e4ba57a127615a2d7c59cea27d67f2d24c158def97af3f15
MD5 133743eb9f47ac8dfb91ab118a025d46
BLAKE2b-256 8ff2cd319801402ecd095265f2f8192e5bc48eaca6707edb36440199ce5c08bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64728a88627e0f88691c5b6164aa2ff2be6fae4c13401ddbcff2b6b9bb664a3e
MD5 6bb077dd4c1a88f8b70768c92c978065
BLAKE2b-256 43079e7cbe245893cfa38393cf2841551b0dabe47a328c4e2a8f70f0cdb5fcdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1cfb11c725f6a8b3ed1c30cc3947f70ed139c27828d64c70c1d9ad0a75b9fb41
MD5 60341f5042e2520f4959563749d4a3df
BLAKE2b-256 451395437257c0f512c6689203c687a98efcf2fa4fc10a5f1912bfb239a9c729

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 57513c21a3a1e331df61f9e803bd31677f50ef4e03580892bdff594ebddd1158
MD5 7f994587c7626d82b6efe4eefeff6a03
BLAKE2b-256 b9f07f006a041600e47f0f955f0e3a851b0fb8f02267a01ccff671c17f37bf63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f74269bad40fa6aed5aadb2b3b0c09687715e281cabc47387e5863a1ebe82190
MD5 0e0fe19a53c3e01a98d5d68ad8590ebf
BLAKE2b-256 70ea3f9cac1e8bf6da053033486d18fcd9ad539a2985614f51ed7c9a50e6c62e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e9e9564fcbd720aa00796557e52114bebb1ae5c5d0c44caa4f187842b562522
MD5 1573018ff044a76e63ac507192465d7e
BLAKE2b-256 ae69ac4293fc3b16454af57afbe4d2522432f04d47bcb1e378fcbd5473840a7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c6d7602dac8cb3e2ad260d0637688f6121ef4afab70265d8ec35d81ed3c62c6c
MD5 a143038002adfc96dc616fd6449e2aa6
BLAKE2b-256 de128db3e6e4eaf7703259630a37b1bae8b24529e2d8d06dfb5e57f62f6221c2

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.18.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 597469e1d70fe97b713f2fa7b80f5fbfdadff8f39792309ab41b533f2f14b4b3
MD5 ea5090d2596e5bc0b21220b692a25e1e
BLAKE2b-256 d14056be2aed9c7c672ead5da0505c540cf24d84dca5a8ac6eb667be783e5f69

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.18.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ba678bec529943bb05ec4ca6f06d449c4b834d1654dd8ee3637dbca4b798e9da
MD5 294983002a855574c51e1fcaf045726e
BLAKE2b-256 cc6e3f509744c952be6364ff6aec3fc2c143520b3ea06e8a69517864c81bdb0c

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.18.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99ada12b701a4324f2ba3782fd276ba9062aa886154662e63a3099c984a2c32e
MD5 a8ec883a837572193f53b5d6186b3c9b
BLAKE2b-256 62b806fd5d1bcdc34fac8c683e66cfafc0fe9381641cf8fa781b8c6063b4fcfd

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.18.2-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cd9cc8a244cf261ecbc765400ed722e6266d6e9dc2b3635353b1159a7f66e845
MD5 f2973f4aee1a07ca43a6aab64a2e9244
BLAKE2b-256 2408602f49844f5034a8676c4726412170e038307c0ea41ef1f0c1ce2732c53d

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.18.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5f6b078ecc548d07dd4947572f73c2790eeb30cd9c288882e53f28fa7f1f0905
MD5 e526124810e32313b0d900dbd682a23a
BLAKE2b-256 a03d0b535261b0f32b536a55d7952fe9d9640922d0e598aa67db8b3196225d90

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.18.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc7961b9cc5531384d40c2bee8639868cc5c128f950f25440f6bdfe045b4ee05
MD5 ad2ec265684d9f519b927c4bf2327117
BLAKE2b-256 587c9bf432a3ae28dbf2bb388b830413418f85f893fe15c5b9288f7c89467471

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.18.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59de85acfc37d194269b23b9e16ca6dbbb17039d117439bff2c4bde66afb4045
MD5 daaa9adb628b59e2f14497682d7e7c9b
BLAKE2b-256 cdc4fc3503f8bba40534a2b7cd31b34d90c77e36d488e374e240901ce4f167b8

See more details on using hashes here.

File details

Details for the file cognite_kuiper-0.18.2-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cognite_kuiper-0.18.2-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8217d7db99d3bec5e63b3a73225ec681a72e3f8f197605d0fdfdc84ed7cfa0cb
MD5 f971052698ac738fb1fc47372885e2db
BLAKE2b-256 f7c29482e95dcdb1a205bdb4860e338bdd9a7284c57d3d1241a0bd749313c222

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