Name | cognite-kuiper JSON |
Version |
0.14.0
JSON |
| download |
home_page | None |
Summary | A JSON to JSON transform and templating language from Cognite |
upload_time | 2025-01-24 08:50:06 |
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.14.0",
"project_urls": {
"homepage": "https://cognite.com",
"repository": "https://github.com/cognitedata/kuiper"
},
"split_keywords": [
"json",
" transformation"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "641ea93674145cc1b0116631c42ba04eebee2f243c1aa2f0aea25a080d04f44c",
"md5": "294469c49f1786414e2930c5379691e3",
"sha256": "852695f95d77ae010199e3e90d1851647ee94a66c01a4b61f03cc16f7ad8f3a3"
},
"downloads": -1,
"filename": "cognite_kuiper-0.14.0-cp310-cp310-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "294469c49f1786414e2930c5379691e3",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1400848,
"upload_time": "2025-01-24T08:50:06",
"upload_time_iso_8601": "2025-01-24T08:50:06.830256Z",
"url": "https://files.pythonhosted.org/packages/64/1e/a93674145cc1b0116631c42ba04eebee2f243c1aa2f0aea25a080d04f44c/cognite_kuiper-0.14.0-cp310-cp310-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "84182de128dbe9774ab44c0527d9d6f6383373f3a8b3aa2d87ef7c1368fb9674",
"md5": "782b9a84a1363d41d477706a133ba45d",
"sha256": "9aa31397a49aae232064374d18071a8362c8b7bace1d9beb91d2ba111cde5ee0"
},
"downloads": -1,
"filename": "cognite_kuiper-0.14.0-cp310-cp310-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "782b9a84a1363d41d477706a133ba45d",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1324278,
"upload_time": "2025-01-24T08:50:08",
"upload_time_iso_8601": "2025-01-24T08:50:08.315324Z",
"url": "https://files.pythonhosted.org/packages/84/18/2de128dbe9774ab44c0527d9d6f6383373f3a8b3aa2d87ef7c1368fb9674/cognite_kuiper-0.14.0-cp310-cp310-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "c71b13e786423658f8013977cd3a00cf45293b8db2b411dbfa7154db96d70ca2",
"md5": "610ed6051f794fd84491e87b1ede673f",
"sha256": "c1a72a51fa04db6da7a258bb30da4d99e0e5519f06511bdef0f3fc2076ddf3fd"
},
"downloads": -1,
"filename": "cognite_kuiper-0.14.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "610ed6051f794fd84491e87b1ede673f",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1558375,
"upload_time": "2025-01-24T08:50:09",
"upload_time_iso_8601": "2025-01-24T08:50:09.863577Z",
"url": "https://files.pythonhosted.org/packages/c7/1b/13e786423658f8013977cd3a00cf45293b8db2b411dbfa7154db96d70ca2/cognite_kuiper-0.14.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "d4c453e0f5c661495ffd51762904f7662e22a4a8d5e65f5fc701623180e328c2",
"md5": "c89dd5536037431ff562483990236e41",
"sha256": "8145e8d90cd152988b87b207c73bcd227a9c3c6ecba6f938dec52bea624f4143"
},
"downloads": -1,
"filename": "cognite_kuiper-0.14.0-cp310-cp310-win_amd64.whl",
"has_sig": false,
"md5_digest": "c89dd5536037431ff562483990236e41",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1173585,
"upload_time": "2025-01-24T08:50:12",
"upload_time_iso_8601": "2025-01-24T08:50:12.032064Z",
"url": "https://files.pythonhosted.org/packages/d4/c4/53e0f5c661495ffd51762904f7662e22a4a8d5e65f5fc701623180e328c2/cognite_kuiper-0.14.0-cp310-cp310-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e56628b768bea54007eb489f8b484a4ae10214a0780912da49f85ec1a1f9570b",
"md5": "3e29f6e7eda9f360ac6436394c62729b",
"sha256": "272db8100cf6842411f40910d678f46aa0557da0b5332d08a7ebac1aa25768c2"
},
"downloads": -1,
"filename": "cognite_kuiper-0.14.0-cp311-cp311-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "3e29f6e7eda9f360ac6436394c62729b",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1400376,
"upload_time": "2025-01-24T08:50:13",
"upload_time_iso_8601": "2025-01-24T08:50:13.910220Z",
"url": "https://files.pythonhosted.org/packages/e5/66/28b768bea54007eb489f8b484a4ae10214a0780912da49f85ec1a1f9570b/cognite_kuiper-0.14.0-cp311-cp311-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "7c2d77bdc9374b1b3916a73bf0248c2787ead7921ac737a3eaa9048c7a7a1d78",
"md5": "2dcba11c5395b5ca6e909663db507630",
"sha256": "7886ae3a1dc08af43d6d7fb97e47a1444f575ca0a83c4d52e77d633b37719912"
},
"downloads": -1,
"filename": "cognite_kuiper-0.14.0-cp311-cp311-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "2dcba11c5395b5ca6e909663db507630",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1324145,
"upload_time": "2025-01-24T08:50:15",
"upload_time_iso_8601": "2025-01-24T08:50:15.390553Z",
"url": "https://files.pythonhosted.org/packages/7c/2d/77bdc9374b1b3916a73bf0248c2787ead7921ac737a3eaa9048c7a7a1d78/cognite_kuiper-0.14.0-cp311-cp311-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e6e90919700916d1d5c96f35b31621b761b1195639d76bb3fd8dba96c8e5b50d",
"md5": "752d549f81c4b007bf53bdbe5a1a659f",
"sha256": "b5c9481a5c8733557eb088be3228882dcc2b8ec1d7200f6846da56f639d8a4b5"
},
"downloads": -1,
"filename": "cognite_kuiper-0.14.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "752d549f81c4b007bf53bdbe5a1a659f",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1557828,
"upload_time": "2025-01-24T08:50:17",
"upload_time_iso_8601": "2025-01-24T08:50:17.254358Z",
"url": "https://files.pythonhosted.org/packages/e6/e9/0919700916d1d5c96f35b31621b761b1195639d76bb3fd8dba96c8e5b50d/cognite_kuiper-0.14.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "29fb25df4749f772407030e41864a07d9246846882396c0bc46c10a82ccafde9",
"md5": "a64fa580fbfbf426d3b0cc6b5c30cde0",
"sha256": "cd287b5ec8728ca58106de9f4bff905958917da690416466b7f3d97c1284aafc"
},
"downloads": -1,
"filename": "cognite_kuiper-0.14.0-cp311-cp311-win_amd64.whl",
"has_sig": false,
"md5_digest": "a64fa580fbfbf426d3b0cc6b5c30cde0",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1173625,
"upload_time": "2025-01-24T08:50:19",
"upload_time_iso_8601": "2025-01-24T08:50:19.560739Z",
"url": "https://files.pythonhosted.org/packages/29/fb/25df4749f772407030e41864a07d9246846882396c0bc46c10a82ccafde9/cognite_kuiper-0.14.0-cp311-cp311-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e532fc470f55d393097b32964268d1869cc61d0e60f331f134c95693f23e6316",
"md5": "757ace8471450e05e3e4d5ec40d55c9b",
"sha256": "8393600959660c026ae3353d2eb418f2701a1212ae77ef20c334da9c8a1853bd"
},
"downloads": -1,
"filename": "cognite_kuiper-0.14.0-cp312-cp312-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "757ace8471450e05e3e4d5ec40d55c9b",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1398799,
"upload_time": "2025-01-24T08:50:21",
"upload_time_iso_8601": "2025-01-24T08:50:21.079811Z",
"url": "https://files.pythonhosted.org/packages/e5/32/fc470f55d393097b32964268d1869cc61d0e60f331f134c95693f23e6316/cognite_kuiper-0.14.0-cp312-cp312-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "c870fb32aa5c361103247b55aba2e04a1eddd61f50f302634571c3b82d1dfb7c",
"md5": "bcaa3db46924842e38383d47a8cc9ead",
"sha256": "d2961b87629aae6eadbd53b143c4253a0ebbb6c4e7f1d57b1dcb6c390f36972b"
},
"downloads": -1,
"filename": "cognite_kuiper-0.14.0-cp312-cp312-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "bcaa3db46924842e38383d47a8cc9ead",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1320399,
"upload_time": "2025-01-24T08:50:22",
"upload_time_iso_8601": "2025-01-24T08:50:22.758381Z",
"url": "https://files.pythonhosted.org/packages/c8/70/fb32aa5c361103247b55aba2e04a1eddd61f50f302634571c3b82d1dfb7c/cognite_kuiper-0.14.0-cp312-cp312-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "49b9057e397f505bded2a6112102a251a46950a09be633cdf03fe26cdc0de694",
"md5": "5a0538b6e7bedae8fd8164b1c4befa81",
"sha256": "23c504959fff372dc57ed6de02c82c85f8aac9575c9195e3948d23801a1f29e7"
},
"downloads": -1,
"filename": "cognite_kuiper-0.14.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "5a0538b6e7bedae8fd8164b1c4befa81",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1558086,
"upload_time": "2025-01-24T08:50:24",
"upload_time_iso_8601": "2025-01-24T08:50:24.514196Z",
"url": "https://files.pythonhosted.org/packages/49/b9/057e397f505bded2a6112102a251a46950a09be633cdf03fe26cdc0de694/cognite_kuiper-0.14.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "f6f16a0ee9c505a7f748327e8d3bf06903c408f7a6166575b75b6835dfd19323",
"md5": "6af884e3544f7c61ac2e4c557df3d6e0",
"sha256": "3015b80f094459d16a8ff18b5eace9b3f44a8ada86ed321cc12b932c60318173"
},
"downloads": -1,
"filename": "cognite_kuiper-0.14.0-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "6af884e3544f7c61ac2e4c557df3d6e0",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1174040,
"upload_time": "2025-01-24T08:50:26",
"upload_time_iso_8601": "2025-01-24T08:50:26.826190Z",
"url": "https://files.pythonhosted.org/packages/f6/f1/6a0ee9c505a7f748327e8d3bf06903c408f7a6166575b75b6835dfd19323/cognite_kuiper-0.14.0-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-24 08:50:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cognitedata",
"github_project": "kuiper",
"github_not_found": true,
"lcname": "cognite-kuiper"
}