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.

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.

Development

We use PyO3 to create the bindings.

This project uses maturin to manage dependencies and such, instead of poetry. 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.1-cp314-cp314-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.14Windows x86-64

cognite_kuiper-0.18.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.18.1-cp314-cp314-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

cognite_kuiper-0.18.1-cp314-cp314-macosx_10_12_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

cognite_kuiper-0.18.1-cp313-cp313-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.13Windows x86-64

cognite_kuiper-0.18.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.18.1-cp313-cp313-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

cognite_kuiper-0.18.1-cp313-cp313-macosx_10_12_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

cognite_kuiper-0.18.1-cp312-cp312-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.12Windows x86-64

cognite_kuiper-0.18.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.18.1-cp312-cp312-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

cognite_kuiper-0.18.1-cp312-cp312-macosx_10_12_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

cognite_kuiper-0.18.1-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11Windows x86-64

cognite_kuiper-0.18.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.18.1-cp311-cp311-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

cognite_kuiper-0.18.1-cp311-cp311-macosx_10_12_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

cognite_kuiper-0.18.1-cp310-cp310-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.10Windows x86-64

cognite_kuiper-0.18.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

cognite_kuiper-0.18.1-cp310-cp310-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

cognite_kuiper-0.18.1-cp310-cp310-macosx_10_12_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 22a20cb7c65014ffe1427e2ece7e2ae8089735e8e75a8476ff3dd41d85eab276
MD5 5361e90d06a06c859543416efe2dd528
BLAKE2b-256 795cf927765a054d75a38b65528c6d8c2cdcd11751ad2e78bf34eceb0e2c7b27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c618a0f86c211e233a85dfa22e0249255bf913d3d03f82c8c19b03b5a551c5af
MD5 42e46f9ca666e1cd712ee9bffdba84a1
BLAKE2b-256 e6bc603893ef78aadb21e861c1063fec00d9f8a61da783b88695bbe1fe67354f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 774b6ecfd0289784db65aaa364f8d0904105cb0bfc976fd74429e448da770825
MD5 8be33875110de89b013e86dc251e24a9
BLAKE2b-256 af96322136cdac55a2bf9a79fa8f0df5418a4a9ec1a913acdf10b1a2bac5856c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 48982ed84375bb98485c6b27bbb72cc310618d496191c3a400b4173d9670dddc
MD5 777c0c1ab24ae251ecc4786125870f8b
BLAKE2b-256 88a106a7083272104a5d0dd33f466a0f0e2361fba41eac79b1eb11a8b014805a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5fb2e2df7d30c6546c3949c60ca87a691554c3bd10a548acbe9dbb4d392565fb
MD5 1b6210b438763144b0bb58997a8a7ede
BLAKE2b-256 eb1db32901de228bbea857fe3aa478efd80136f626008d43c00a0984904cd465

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 175db4dba396e53554d8d1475d150070a12dfa85c17d9c6c8b15ea2fbb32b4f8
MD5 1c7e35eebd3b1846620cee1a251cda30
BLAKE2b-256 a1457a8f64ea0e54c39eb99104393be41bb4f47c9cf0fdd77912f5c63629145a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e3257735910060e302e56b2f6f767ddf7be6a64deb8659bd6e4e0f6d830abfe
MD5 1908f7e85f9c008686a00d661d789d53
BLAKE2b-256 6f87949019daae40772fc1ff0f2c86c549ac5aecdfbec33da11fa2c42f03db3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 485996b23805c5e332c54c90638a4b2da1152caf235a4ac6d52ecab34e920bcd
MD5 7df86e1f8b598ba54c29fdafd36079bf
BLAKE2b-256 08a79a6bd38317bd646e7efc11f30bcd9314150a295bd8c18375e3ad1cc1d658

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eb9a83dfade780fddcb62a8869103452db86b968f123986e897a4235f73fe933
MD5 3420f9f1dec306373a84eac898e459e1
BLAKE2b-256 c2d8f7e0cc9d79de2717231d9a910133651a9fe09d653532fa8d5346e1907a9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6f68fa8975225f9e9dd501342c9355607354ccaab3ab4cd9584114718c41f263
MD5 0207b568d939edbaf97b7102ebd82e1e
BLAKE2b-256 b177c6d6fadf9d7a246a8df55b2f887e26a6873c978a1567216c8677a39456cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 567fa340bf67428e1a8b86eacb76a913d343755a49a0fd58ee00f1317cab368a
MD5 da05ec1d0ce11a3bf0145f0240a89d67
BLAKE2b-256 53840fa203cc92273779fab04336640e0b313fd8d58bf86658b4571c5646bae1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bbff9f15d0b5a38cd4da04d587372b01ac628c12d89db5f04f34be0fa6058719
MD5 0cd739674cfca469b03628c33c79926b
BLAKE2b-256 5beaaae51b8a722ecd179148f2d11dc090ea8e89ec98e83d46ed45443a6db409

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5b027fe7555e9687329af8f638f3af994dbc7401201498e8c89b64aba8c6fc0a
MD5 5ba43aa2f552fee43f16503eba5514c6
BLAKE2b-256 f9d9869fa4218720f7be138f66f6ea031ce91cd9257d9bef3f6e2d90371a860d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 77ca20324da6ae2a503f3351f97bc8dc360b1381813e95837922e56780081715
MD5 f0f8fe1d0a326f91680047b870c61b0c
BLAKE2b-256 255b68861964e8a97f95291bbb9e67f74f6770209c3c5dec4a4718cb090980f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68c23ce09015627dab837375756a62cd509548359def5aeaf3f98948db609f41
MD5 599e5f1bf66725c6743816bb1111ee61
BLAKE2b-256 c80f0c84c27fa0ca78bb7830c9373be4ace79f81ab22edd95e4c5d88eeda4e12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3795cdc3c57268d654b9568c4b8d713ab1cef65c2bf385b260573d7e752af83a
MD5 ef6aa35ee8b66af7592e97d14b87cabb
BLAKE2b-256 6db99c31b3190b28bc0a1440b43086127dac0ec83bce4c0d1584ab925d9985b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 35922a4dd747a316f919a0453a756a3e60ac60df04733e5fa42e2948bc878614
MD5 26e06c031c28a2f5fb27c9798bb46302
BLAKE2b-256 14ba7dea51a773a2f8e8caf962361dcbc339dc92211aecdd0e22401dc3c15418

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 510aafb54b2b5ddef86f4a71f6edbd679bd2fb9288063906b45b60ee3f7d84f7
MD5 361c6d0860fa44f570565f6246f53632
BLAKE2b-256 86f7df6ad3e4479d4dc7a15486d3f647ed5154bb2fa351cd62a8892083871f6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00362a1cd6a06f17ededd4857d024714202727c2d84fbeb485fd96870c57fc88
MD5 be1248a854ffe37b02aaae64c4779e98
BLAKE2b-256 3c7104d8bcfe15d8664105d4d10feba9f20dae32dc70c28a0e9ab6f598e73233

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognite_kuiper-0.18.1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b25a812041d2baea637863b9781c880b64dc67115fc638dc519f96cc8bbc3b9d
MD5 594f625a4da89d49d8dd9915559e4fe0
BLAKE2b-256 827d1114d73d6f13badc175d1026e81b19a4c2870ebd5d0dbfadddc24028a922

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