Name | cognite-kuiper JSON |
Version |
0.12.0
JSON |
| download |
home_page | None |
Summary | A JSON to JSON transform and templating language from Cognite |
upload_time | 2024-11-05 09:53: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.12.0",
"project_urls": {
"homepage": "https://cognite.com",
"repository": "https://github.com/cognitedata/kuiper"
},
"split_keywords": [
"json",
" transformation"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bf52fa202ebc206ff048e089e939750eb7e401a66cb1a5ac066435ecf6c168e4",
"md5": "c0fc39ea65615602c2b75c426bb4525b",
"sha256": "6dda8df7ec408e2b29e9c1e0e127c28f0b99a3f2077cc13c27e8676db66a0194"
},
"downloads": -1,
"filename": "cognite_kuiper-0.12.0-cp310-cp310-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "c0fc39ea65615602c2b75c426bb4525b",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1317456,
"upload_time": "2024-11-05T09:53:06",
"upload_time_iso_8601": "2024-11-05T09:53:06.958058Z",
"url": "https://files.pythonhosted.org/packages/bf/52/fa202ebc206ff048e089e939750eb7e401a66cb1a5ac066435ecf6c168e4/cognite_kuiper-0.12.0-cp310-cp310-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "745b8a225aedae2504bb5ab4e27378d542e5989215947881f47b054cd47492e4",
"md5": "9a7f8f9a3d6eaf42f3b4b539bfe17ba8",
"sha256": "cca491a2dfe3aa0a1cd2eae03ecb34015e781a2434460463edf94dbc0fd8bad8"
},
"downloads": -1,
"filename": "cognite_kuiper-0.12.0-cp310-cp310-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "9a7f8f9a3d6eaf42f3b4b539bfe17ba8",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1244156,
"upload_time": "2024-11-05T09:53:08",
"upload_time_iso_8601": "2024-11-05T09:53:08.987073Z",
"url": "https://files.pythonhosted.org/packages/74/5b/8a225aedae2504bb5ab4e27378d542e5989215947881f47b054cd47492e4/cognite_kuiper-0.12.0-cp310-cp310-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0b988e6ed047acda7d99b72db9f8a8e0b87f127d651c21570c8b55f9f3fc8982",
"md5": "b26bb8265692e2cb0756901d54894b8b",
"sha256": "fd1d59217c4bbf18fb387e5fdbc267093a883c14b90c18e015bbb8e155b30430"
},
"downloads": -1,
"filename": "cognite_kuiper-0.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "b26bb8265692e2cb0756901d54894b8b",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1487453,
"upload_time": "2024-11-05T09:53:10",
"upload_time_iso_8601": "2024-11-05T09:53:10.531622Z",
"url": "https://files.pythonhosted.org/packages/0b/98/8e6ed047acda7d99b72db9f8a8e0b87f127d651c21570c8b55f9f3fc8982/cognite_kuiper-0.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bde9feb43a7750b9703faf2387f0f13cae46fb4a062fcf9bf5a2e17a67e08d36",
"md5": "22572dbbb5899b1e07187f5e09d26974",
"sha256": "cee764db9550d73bd3445441c4762ac1f9a97c4fe423bfe07bbd39f38683ce4d"
},
"downloads": -1,
"filename": "cognite_kuiper-0.12.0-cp310-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "22572dbbb5899b1e07187f5e09d26974",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1120823,
"upload_time": "2024-11-05T09:53:11",
"upload_time_iso_8601": "2024-11-05T09:53:11.948075Z",
"url": "https://files.pythonhosted.org/packages/bd/e9/feb43a7750b9703faf2387f0f13cae46fb4a062fcf9bf5a2e17a67e08d36/cognite_kuiper-0.12.0-cp310-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bea03401d45c9a91edd13b055d3809b48b54a909deda3a9f739f009d6d983301",
"md5": "dc3179045dae5ed8f98e46e1dce9a48d",
"sha256": "395e6ee4440f05ee65cc749e808a3c10aa93621921b964cc7e6e3d22861c34ec"
},
"downloads": -1,
"filename": "cognite_kuiper-0.12.0-cp311-cp311-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "dc3179045dae5ed8f98e46e1dce9a48d",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1318041,
"upload_time": "2024-11-05T09:53:13",
"upload_time_iso_8601": "2024-11-05T09:53:13.696453Z",
"url": "https://files.pythonhosted.org/packages/be/a0/3401d45c9a91edd13b055d3809b48b54a909deda3a9f739f009d6d983301/cognite_kuiper-0.12.0-cp311-cp311-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a9424a895a9595c03b4d23c235c51fca865c66bb01fe1a572538eca639b97407",
"md5": "f67affedfae0bcec87afe9ce51d2ada1",
"sha256": "449b9aa61b98621677246725b840ae4d93a78cf6844fae712678c668f4661d61"
},
"downloads": -1,
"filename": "cognite_kuiper-0.12.0-cp311-cp311-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "f67affedfae0bcec87afe9ce51d2ada1",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1243937,
"upload_time": "2024-11-05T09:53:15",
"upload_time_iso_8601": "2024-11-05T09:53:15.041079Z",
"url": "https://files.pythonhosted.org/packages/a9/42/4a895a9595c03b4d23c235c51fca865c66bb01fe1a572538eca639b97407/cognite_kuiper-0.12.0-cp311-cp311-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6311c3f2ccef2838ad9992c46e7d10e3579ce85946080d3c0ac715e792b9e734",
"md5": "359b8f87799849263c36431ec60a1557",
"sha256": "b936642ac0a1dc75bc475b83c915727f6c97fdc40181e11a0f0c3c0054710cc7"
},
"downloads": -1,
"filename": "cognite_kuiper-0.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "359b8f87799849263c36431ec60a1557",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1487980,
"upload_time": "2024-11-05T09:53:17",
"upload_time_iso_8601": "2024-11-05T09:53:17.388489Z",
"url": "https://files.pythonhosted.org/packages/63/11/c3f2ccef2838ad9992c46e7d10e3579ce85946080d3c0ac715e792b9e734/cognite_kuiper-0.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "26084ea0b4ae139cc795a3a7e18720fb4adef015c194386a602deacd9788c53e",
"md5": "f6b56b4ec0832b6dd548eff250ab27b7",
"sha256": "68de662e21e553de1a77e061745b32f8f44bc3c22f7cb35063a93d108e4569bf"
},
"downloads": -1,
"filename": "cognite_kuiper-0.12.0-cp311-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "f6b56b4ec0832b6dd548eff250ab27b7",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1120962,
"upload_time": "2024-11-05T09:53:18",
"upload_time_iso_8601": "2024-11-05T09:53:18.906674Z",
"url": "https://files.pythonhosted.org/packages/26/08/4ea0b4ae139cc795a3a7e18720fb4adef015c194386a602deacd9788c53e/cognite_kuiper-0.12.0-cp311-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "095672d88a68bde3ee33c4b3187badb36e049579f1ac88acde819dbda88011c4",
"md5": "3beba81f862dc8b4328ed32538bb671e",
"sha256": "8c4a12cf9c82811199b6e02736d2e48d680c44f768e5a406e954db935165c0d6"
},
"downloads": -1,
"filename": "cognite_kuiper-0.12.0-cp312-cp312-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "3beba81f862dc8b4328ed32538bb671e",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1317430,
"upload_time": "2024-11-05T09:53:20",
"upload_time_iso_8601": "2024-11-05T09:53:20.852084Z",
"url": "https://files.pythonhosted.org/packages/09/56/72d88a68bde3ee33c4b3187badb36e049579f1ac88acde819dbda88011c4/cognite_kuiper-0.12.0-cp312-cp312-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9645743fa80f9bf2a4bddb2da93125c7e621245646c73e2ee162d76712d6da5b",
"md5": "4be2eb8c3a11405487a622e32e6d8ca7",
"sha256": "4e25ad0208401f141a442ba6af21782ce9116e02f4d968914169fd641f802e79"
},
"downloads": -1,
"filename": "cognite_kuiper-0.12.0-cp312-cp312-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "4be2eb8c3a11405487a622e32e6d8ca7",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1243423,
"upload_time": "2024-11-05T09:53:22",
"upload_time_iso_8601": "2024-11-05T09:53:22.262620Z",
"url": "https://files.pythonhosted.org/packages/96/45/743fa80f9bf2a4bddb2da93125c7e621245646c73e2ee162d76712d6da5b/cognite_kuiper-0.12.0-cp312-cp312-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a3c39388e3408cfe9d63f6c7284fc325e3fad35c73c92c6d58fab44a895b66ca",
"md5": "d6774eb53ea7e1e62374210b83ec6ec1",
"sha256": "a42224a233ef3961008d18184149d16c419f14d617ae71117f5fcff96e1c6611"
},
"downloads": -1,
"filename": "cognite_kuiper-0.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "d6774eb53ea7e1e62374210b83ec6ec1",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1487621,
"upload_time": "2024-11-05T09:53:24",
"upload_time_iso_8601": "2024-11-05T09:53:24.203357Z",
"url": "https://files.pythonhosted.org/packages/a3/c3/9388e3408cfe9d63f6c7284fc325e3fad35c73c92c6d58fab44a895b66ca/cognite_kuiper-0.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8a2ad7fb3b1273cb4ede426dc76b66b5b722dae55f54e9b3d0ee6cf68b60be17",
"md5": "38a7881454c4403270d71ca6ca4f0971",
"sha256": "274c3cff1d148cb661f3434e572b90bd011daaa4a2c678450294af6df750a0fb"
},
"downloads": -1,
"filename": "cognite_kuiper-0.12.0-cp312-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "38a7881454c4403270d71ca6ca4f0971",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1120893,
"upload_time": "2024-11-05T09:53:25",
"upload_time_iso_8601": "2024-11-05T09:53:25.696556Z",
"url": "https://files.pythonhosted.org/packages/8a/2a/d7fb3b1273cb4ede426dc76b66b5b722dae55f54e9b3d0ee6cf68b60be17/cognite_kuiper-0.12.0-cp312-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-05 09:53:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cognitedata",
"github_project": "kuiper",
"github_not_found": true,
"lcname": "cognite-kuiper"
}