| Name | cognite-kuiper JSON |
| Version |
0.18.0
JSON |
| download |
| home_page | None |
| Summary | A JSON to JSON transform and templating language from Cognite |
| upload_time | 2025-10-22 12:36:34 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.10 |
| license | Apache-2.0 |
| keywords |
json
transformation
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# Python bindings for Kuiper
Python bindings for Kuiper so you can compile and run transformations from a
Python runtime.
``` python
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](https://pyo3.rs) to create the bindings.
This project uses [maturin](https://www.maturin.rs/) to manage dependencies and
such, instead of poetry. To set up your local development environment, first
make sure maturin is installed:
``` commanline
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:
``` commandline
source enter.sh
```
``` commandline
source exit.sh
```
Whenever you change the code, you need to rebuild. Instead of using `cargo`
directly, use `maturin`:
``` commandline
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "cognite-kuiper",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "Mathias Lohne <mathias.lohne@cognite.com>",
"keywords": "JSON, transformation",
"author": null,
"author_email": "Mathias Lohne <mathias.lohne@cognite.com>",
"download_url": null,
"platform": null,
"description": "# Python bindings for Kuiper\n\nPython bindings for Kuiper so you can compile and run transformations from a\nPython runtime.\n\n``` python\nfrom kuiper import compile_expression\n\nexpression = compile_expression('{\"theAnswer\": input.numericValue + 27}', [\"input\"])\nvalue = expression.run('{\"numericValue\": 15}')\nprint(value)\n```\n\nThe `compile_expression` function might raise a `KuiperCompileError`, and\notherwise returns a `KuiperExpression` object. The `KuiperExpression.run(...)`\nmethod might raise a `KuiperRuntimeError`. Both of these exceptions are\nsubclasses of the `KuiperError` base class.\n\n## Development\n\nWe use [PyO3](https://pyo3.rs) to create the bindings.\n\nThis project uses [maturin](https://www.maturin.rs/) to manage dependencies and\nsuch, instead of poetry. To set up your local development environment, first\nmake sure maturin is installed:\n\n``` commanline\npip install -U maturin\n```\n\nThen, you can enter or exit a virtual environment with the `kuiper` package\ninstalled by sourcing the `enter.sh` or `exit.sh` scripts:\n\n``` commandline\nsource enter.sh\n```\n\n``` commandline\nsource exit.sh\n```\n\nWhenever you change the code, you need to rebuild. Instead of using `cargo`\ndirectly, use `maturin`:\n\n``` commandline\nmaturin develop\n```\n\nThis will build and install the python package into the current environment,\nwhich is the virtual environment created by the `enter.sh` script.\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "A JSON to JSON transform and templating language from Cognite",
"version": "0.18.0",
"project_urls": {
"homepage": "https://cognite.com",
"repository": "https://github.com/cognitedata/kuiper"
},
"split_keywords": [
"json",
" transformation"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "3a51857ac417f5e3b765d15517b28db4447fad6d00fba487348412d8dfc5e40f",
"md5": "f8bfed2e8c06a12fe4f290f07777415d",
"sha256": "ece170048f3d52e76842291af670750c090a2417e9fd90375d6bab7fcd5813ee"
},
"downloads": -1,
"filename": "cognite_kuiper-0.18.0-cp310-cp310-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "f8bfed2e8c06a12fe4f290f07777415d",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1409840,
"upload_time": "2025-10-22T12:36:34",
"upload_time_iso_8601": "2025-10-22T12:36:34.235913Z",
"url": "https://files.pythonhosted.org/packages/3a/51/857ac417f5e3b765d15517b28db4447fad6d00fba487348412d8dfc5e40f/cognite_kuiper-0.18.0-cp310-cp310-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3b2ad18a9598d76cac1a644dacaed6feec47ee3bd230e0f0499230cae3648717",
"md5": "ef6b7f6bb3bc77eb4787761cb09f59a7",
"sha256": "51c9c99a2024c54246e5eb2c205f662500673c0234798a4398e08856a6ce3c35"
},
"downloads": -1,
"filename": "cognite_kuiper-0.18.0-cp310-cp310-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "ef6b7f6bb3bc77eb4787761cb09f59a7",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1333994,
"upload_time": "2025-10-22T12:36:35",
"upload_time_iso_8601": "2025-10-22T12:36:35.695184Z",
"url": "https://files.pythonhosted.org/packages/3b/2a/d18a9598d76cac1a644dacaed6feec47ee3bd230e0f0499230cae3648717/cognite_kuiper-0.18.0-cp310-cp310-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "9d10d95b026273814637aa5136dc8ed9cfe777bc0e6b1556f524fcdde8e75c74",
"md5": "0c3ca388495013f2ee6cc473b5f66c76",
"sha256": "7da6d1d19c14d3e6a650f604c0b17c92e6dc230259bd770639c4f3258ca65793"
},
"downloads": -1,
"filename": "cognite_kuiper-0.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "0c3ca388495013f2ee6cc473b5f66c76",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1532166,
"upload_time": "2025-10-22T12:36:37",
"upload_time_iso_8601": "2025-10-22T12:36:37.244268Z",
"url": "https://files.pythonhosted.org/packages/9d/10/d95b026273814637aa5136dc8ed9cfe777bc0e6b1556f524fcdde8e75c74/cognite_kuiper-0.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "94821cdec18770a59b52ef81acdd03a9c45124aa1165c93ece2faf6ee8b55889",
"md5": "cae9eb9dd0ad5f2cfe56f234bc2fc4b5",
"sha256": "19a52c8206dac31aa48e21d63930543714bba05049f688db0bcb37d4d77e0a4a"
},
"downloads": -1,
"filename": "cognite_kuiper-0.18.0-cp310-cp310-win_amd64.whl",
"has_sig": false,
"md5_digest": "cae9eb9dd0ad5f2cfe56f234bc2fc4b5",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1175668,
"upload_time": "2025-10-22T12:36:38",
"upload_time_iso_8601": "2025-10-22T12:36:38.721925Z",
"url": "https://files.pythonhosted.org/packages/94/82/1cdec18770a59b52ef81acdd03a9c45124aa1165c93ece2faf6ee8b55889/cognite_kuiper-0.18.0-cp310-cp310-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "02158dcac838eb1b9f3290f2d752b401f3ca0e987d33966b579bd4833588584b",
"md5": "9fb5568337008d4493aa6005fc1e26b6",
"sha256": "f8f55b5f4b1d7782da2ebbc5f054aa48a4f1dc22f2aaeb2a93b9105e0d7c00c8"
},
"downloads": -1,
"filename": "cognite_kuiper-0.18.0-cp311-cp311-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "9fb5568337008d4493aa6005fc1e26b6",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1409674,
"upload_time": "2025-10-22T12:36:40",
"upload_time_iso_8601": "2025-10-22T12:36:40.119013Z",
"url": "https://files.pythonhosted.org/packages/02/15/8dcac838eb1b9f3290f2d752b401f3ca0e987d33966b579bd4833588584b/cognite_kuiper-0.18.0-cp311-cp311-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "49aab0a4d9d3188644cb0a603407b6aab0a0ebd618ddaffade3acc1b64bf9340",
"md5": "9fe468605df408cd98b0b701b9e059ad",
"sha256": "536411c52726cfa914b7015ad55cb14131ad393c4baa992fe04ba806c3ab253c"
},
"downloads": -1,
"filename": "cognite_kuiper-0.18.0-cp311-cp311-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "9fe468605df408cd98b0b701b9e059ad",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1333077,
"upload_time": "2025-10-22T12:36:41",
"upload_time_iso_8601": "2025-10-22T12:36:41.241851Z",
"url": "https://files.pythonhosted.org/packages/49/aa/b0a4d9d3188644cb0a603407b6aab0a0ebd618ddaffade3acc1b64bf9340/cognite_kuiper-0.18.0-cp311-cp311-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "151df321f7db72939cd272d5d5012d38f1a6dd956b9faa127927361a8afcbe12",
"md5": "e884a6aecf7e2c636ccd7936f4250168",
"sha256": "e5a01726342743360c6002f9bfb6d1fa59f9e2ad894f5f6185cbf693e8758b1b"
},
"downloads": -1,
"filename": "cognite_kuiper-0.18.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "e884a6aecf7e2c636ccd7936f4250168",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1531846,
"upload_time": "2025-10-22T12:36:42",
"upload_time_iso_8601": "2025-10-22T12:36:42.346840Z",
"url": "https://files.pythonhosted.org/packages/15/1d/f321f7db72939cd272d5d5012d38f1a6dd956b9faa127927361a8afcbe12/cognite_kuiper-0.18.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "76caf3c96d3dfca01a177101e37261992a90a8953eb4fac200829b0e4bfdd287",
"md5": "52c500bf1d77dd1b421040d035375188",
"sha256": "ca5e0887ad100ba4078602737ce5fa3f3a1e64e8cd82de5fae46f02409bcdb23"
},
"downloads": -1,
"filename": "cognite_kuiper-0.18.0-cp311-cp311-win_amd64.whl",
"has_sig": false,
"md5_digest": "52c500bf1d77dd1b421040d035375188",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1175696,
"upload_time": "2025-10-22T12:36:43",
"upload_time_iso_8601": "2025-10-22T12:36:43.485944Z",
"url": "https://files.pythonhosted.org/packages/76/ca/f3c96d3dfca01a177101e37261992a90a8953eb4fac200829b0e4bfdd287/cognite_kuiper-0.18.0-cp311-cp311-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e59d21b160e1fc452b96ec0131791bee771b58ed1095a73d6cc7487d65234f8e",
"md5": "8850152ae4f7cab5d2b7b4c70698e908",
"sha256": "a055a0f9baf0d1a6e5927ce79700d38f0490d7a8ad71fa1ae01c99ad4e55eb37"
},
"downloads": -1,
"filename": "cognite_kuiper-0.18.0-cp312-cp312-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "8850152ae4f7cab5d2b7b4c70698e908",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1408675,
"upload_time": "2025-10-22T12:36:45",
"upload_time_iso_8601": "2025-10-22T12:36:45.115554Z",
"url": "https://files.pythonhosted.org/packages/e5/9d/21b160e1fc452b96ec0131791bee771b58ed1095a73d6cc7487d65234f8e/cognite_kuiper-0.18.0-cp312-cp312-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "f571f47a3b6af24708ab1bd626b6b18ce67dbb87d1ed7dddb63a9dd5612b5a01",
"md5": "3a085a91b88e2d3d21ea818b919d02de",
"sha256": "c9b77f913f54d16741c243a116963b7eafa7468a996232cac2a481bc1c7bbea7"
},
"downloads": -1,
"filename": "cognite_kuiper-0.18.0-cp312-cp312-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "3a085a91b88e2d3d21ea818b919d02de",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1330637,
"upload_time": "2025-10-22T12:36:46",
"upload_time_iso_8601": "2025-10-22T12:36:46.685058Z",
"url": "https://files.pythonhosted.org/packages/f5/71/f47a3b6af24708ab1bd626b6b18ce67dbb87d1ed7dddb63a9dd5612b5a01/cognite_kuiper-0.18.0-cp312-cp312-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "2ce1e916602ecd1f3241e00222a49dc4558144299ae5df49b07f27f23fb28387",
"md5": "e79a136dfbfdac61ffb773fd510ac44b",
"sha256": "d85a988d24f72224848dad7a1b7918a51fdf32e3bae734089d4480a7913510a4"
},
"downloads": -1,
"filename": "cognite_kuiper-0.18.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "e79a136dfbfdac61ffb773fd510ac44b",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1532019,
"upload_time": "2025-10-22T12:36:47",
"upload_time_iso_8601": "2025-10-22T12:36:47.784580Z",
"url": "https://files.pythonhosted.org/packages/2c/e1/e916602ecd1f3241e00222a49dc4558144299ae5df49b07f27f23fb28387/cognite_kuiper-0.18.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e0906be1685c0b78ccee1073939b68f04e952287023a9d1f64effbbe0c387f78",
"md5": "7eb11dd6698f1c09c8c274bf4ae2278d",
"sha256": "fdc2cb67e52e28af5ac6d14f4224cc7c9f48e8ef89f0dccdc84602fc12cf9978"
},
"downloads": -1,
"filename": "cognite_kuiper-0.18.0-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "7eb11dd6698f1c09c8c274bf4ae2278d",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1175662,
"upload_time": "2025-10-22T12:36:48",
"upload_time_iso_8601": "2025-10-22T12:36:48.901950Z",
"url": "https://files.pythonhosted.org/packages/e0/90/6be1685c0b78ccee1073939b68f04e952287023a9d1f64effbbe0c387f78/cognite_kuiper-0.18.0-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-22 12:36:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cognitedata",
"github_project": "kuiper",
"github_not_found": true,
"lcname": "cognite-kuiper"
}