cognite-kuiper


Namecognite-kuiper JSON
Version 0.12.1 PyPI version JSON
download
home_pageNone
SummaryA JSON to JSON transform and templating language from Cognite
upload_time2024-12-05 08:25:28
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseApache-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.1",
    "project_urls": {
        "homepage": "https://cognite.com",
        "repository": "https://github.com/cognitedata/kuiper"
    },
    "split_keywords": [
        "json",
        " transformation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b7abac14a73c450b9342a9a05252ac7eef51fa742c29de6d123591eccb942a4d",
                "md5": "720bd3cc47689790483a86fb94aadf56",
                "sha256": "499fd38c1cb1f90b5ac9e40070a445bc4a6843329dccaae8f23446ed55438ab7"
            },
            "downloads": -1,
            "filename": "cognite_kuiper-0.12.1-cp310-cp310-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "720bd3cc47689790483a86fb94aadf56",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 1323323,
            "upload_time": "2024-12-05T08:25:28",
            "upload_time_iso_8601": "2024-12-05T08:25:28.077182Z",
            "url": "https://files.pythonhosted.org/packages/b7/ab/ac14a73c450b9342a9a05252ac7eef51fa742c29de6d123591eccb942a4d/cognite_kuiper-0.12.1-cp310-cp310-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "58ab86edaf8c887a511bd438c993812d96d2e54a07a357a46d612ab782d7c66a",
                "md5": "383e108b12bb135e761f886e10086aa5",
                "sha256": "49123b16ba5557bda72f6258178def7140db5f8b1d38b0fe8422020518a027d5"
            },
            "downloads": -1,
            "filename": "cognite_kuiper-0.12.1-cp310-cp310-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "383e108b12bb135e761f886e10086aa5",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 1244618,
            "upload_time": "2024-12-05T08:25:30",
            "upload_time_iso_8601": "2024-12-05T08:25:30.432265Z",
            "url": "https://files.pythonhosted.org/packages/58/ab/86edaf8c887a511bd438c993812d96d2e54a07a357a46d612ab782d7c66a/cognite_kuiper-0.12.1-cp310-cp310-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3849243ea589349ab33a83b0620f80f7627c8357feeadf92f70d50b0f73f2803",
                "md5": "b4af79ace80425b850485fe93e9575d3",
                "sha256": "e9dfbfdd820dd3956be43481b78036f7eb300e6f05054de2cd44f1a838fb184e"
            },
            "downloads": -1,
            "filename": "cognite_kuiper-0.12.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "b4af79ace80425b850485fe93e9575d3",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 1488513,
            "upload_time": "2024-12-05T08:25:32",
            "upload_time_iso_8601": "2024-12-05T08:25:32.562896Z",
            "url": "https://files.pythonhosted.org/packages/38/49/243ea589349ab33a83b0620f80f7627c8357feeadf92f70d50b0f73f2803/cognite_kuiper-0.12.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b9cac9230498561f1dc6768c1410a232cf7ba154526028b6be44650269feb608",
                "md5": "b9308a096ffa591c56e632098f05f2af",
                "sha256": "8280bb7d6ed33d03ff9cb4a45fd7c59cadde938f516dfd2d3eb04b37004555fa"
            },
            "downloads": -1,
            "filename": "cognite_kuiper-0.12.1-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "b9308a096ffa591c56e632098f05f2af",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 1118582,
            "upload_time": "2024-12-05T08:25:34",
            "upload_time_iso_8601": "2024-12-05T08:25:34.685623Z",
            "url": "https://files.pythonhosted.org/packages/b9/ca/c9230498561f1dc6768c1410a232cf7ba154526028b6be44650269feb608/cognite_kuiper-0.12.1-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "16824c9a186afa48d8ca9ab98810cb0b8b269707bcd38db253a85550f29dfcbb",
                "md5": "d87909f0e026d9f236c947aeaa44ec2c",
                "sha256": "47bff0e17f0ad8b1e3bc99632f92a7171c68855b1e299c8ebf3ba274ada9cb00"
            },
            "downloads": -1,
            "filename": "cognite_kuiper-0.12.1-cp311-cp311-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d87909f0e026d9f236c947aeaa44ec2c",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 1323513,
            "upload_time": "2024-12-05T08:25:36",
            "upload_time_iso_8601": "2024-12-05T08:25:36.111207Z",
            "url": "https://files.pythonhosted.org/packages/16/82/4c9a186afa48d8ca9ab98810cb0b8b269707bcd38db253a85550f29dfcbb/cognite_kuiper-0.12.1-cp311-cp311-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5198522cc807739013a7714129fbf5fba8da2c2537346d6a61e749a17d4bc253",
                "md5": "f618046cb8db8ef20e2b178f59f187ba",
                "sha256": "ee3a3294f2711b5fb865c642ed3afa45007e5f023c77eba7dccbaeb71f32f394"
            },
            "downloads": -1,
            "filename": "cognite_kuiper-0.12.1-cp311-cp311-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "f618046cb8db8ef20e2b178f59f187ba",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 1244636,
            "upload_time": "2024-12-05T08:25:37",
            "upload_time_iso_8601": "2024-12-05T08:25:37.465137Z",
            "url": "https://files.pythonhosted.org/packages/51/98/522cc807739013a7714129fbf5fba8da2c2537346d6a61e749a17d4bc253/cognite_kuiper-0.12.1-cp311-cp311-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1fd6ed0f6610e51b8dd4e8340baa8cc9cc1298422f5dca71d9cc726d44a2946d",
                "md5": "0f2955c78ef4d4c019ec9f5dd4f711c1",
                "sha256": "a30ef93324814c305358ccd4ebe4aa5b9858344bd3d5775c60347cd47d3f016a"
            },
            "downloads": -1,
            "filename": "cognite_kuiper-0.12.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "0f2955c78ef4d4c019ec9f5dd4f711c1",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 1488169,
            "upload_time": "2024-12-05T08:25:39",
            "upload_time_iso_8601": "2024-12-05T08:25:39.234577Z",
            "url": "https://files.pythonhosted.org/packages/1f/d6/ed0f6610e51b8dd4e8340baa8cc9cc1298422f5dca71d9cc726d44a2946d/cognite_kuiper-0.12.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "756ba31f61ab1370a9987e7bb7645f8d412eda5124936f7a02141406cef825cf",
                "md5": "6077aab69dc54e8487a4d1ca61cfeb48",
                "sha256": "bd7711dadf569363bacd917ff7fa8a4006f47bcadb69b47cd4fe148dadf281c1"
            },
            "downloads": -1,
            "filename": "cognite_kuiper-0.12.1-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "6077aab69dc54e8487a4d1ca61cfeb48",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 1120744,
            "upload_time": "2024-12-05T08:25:40",
            "upload_time_iso_8601": "2024-12-05T08:25:40.586796Z",
            "url": "https://files.pythonhosted.org/packages/75/6b/a31f61ab1370a9987e7bb7645f8d412eda5124936f7a02141406cef825cf/cognite_kuiper-0.12.1-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d2ae64e4acddf5099b5605e05dbe70c21ad1e361f8313244344cd65c59d136a6",
                "md5": "125b17c2c39b82a03c899fd3ae708ea0",
                "sha256": "53d43f7d7b1a73f8e718765022ffbd643f548644fcb032734c95884ec5f7676d"
            },
            "downloads": -1,
            "filename": "cognite_kuiper-0.12.1-cp312-cp312-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "125b17c2c39b82a03c899fd3ae708ea0",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 1320132,
            "upload_time": "2024-12-05T08:25:42",
            "upload_time_iso_8601": "2024-12-05T08:25:42.754350Z",
            "url": "https://files.pythonhosted.org/packages/d2/ae/64e4acddf5099b5605e05dbe70c21ad1e361f8313244344cd65c59d136a6/cognite_kuiper-0.12.1-cp312-cp312-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1ada851473cd584836254ea955345312d961d3143a70bf05f377c90ad2e94098",
                "md5": "a017efe468970a1fb3ab907e000fac31",
                "sha256": "3356a6b0c9a063fb85d3b9148037460e99c947a87d4a579e496d085f4cb29dad"
            },
            "downloads": -1,
            "filename": "cognite_kuiper-0.12.1-cp312-cp312-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "a017efe468970a1fb3ab907e000fac31",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 1242079,
            "upload_time": "2024-12-05T08:25:44",
            "upload_time_iso_8601": "2024-12-05T08:25:44.792145Z",
            "url": "https://files.pythonhosted.org/packages/1a/da/851473cd584836254ea955345312d961d3143a70bf05f377c90ad2e94098/cognite_kuiper-0.12.1-cp312-cp312-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3f4c8bdaf9510c4716d144d937a8212aae40e46281ebadce84471a3b1571229e",
                "md5": "44e5fb7f6aafe3c992b373e3b646dc27",
                "sha256": "3559f5dad206196e89e922003f78936073068acdc8afc6221d3fac16b63a729f"
            },
            "downloads": -1,
            "filename": "cognite_kuiper-0.12.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "44e5fb7f6aafe3c992b373e3b646dc27",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 1486698,
            "upload_time": "2024-12-05T08:25:46",
            "upload_time_iso_8601": "2024-12-05T08:25:46.280442Z",
            "url": "https://files.pythonhosted.org/packages/3f/4c/8bdaf9510c4716d144d937a8212aae40e46281ebadce84471a3b1571229e/cognite_kuiper-0.12.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bbc8aefd882a14e7baeb72d82f0733de2e1a3144520f5869a7f355ec622a568c",
                "md5": "c9224cbbfbc101a3852f0007babfa637",
                "sha256": "375404ccdb23d45c084d6639825224c8f0bb2ef297d220486d00948cb6682970"
            },
            "downloads": -1,
            "filename": "cognite_kuiper-0.12.1-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "c9224cbbfbc101a3852f0007babfa637",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 1119415,
            "upload_time": "2024-12-05T08:25:48",
            "upload_time_iso_8601": "2024-12-05T08:25:48.521543Z",
            "url": "https://files.pythonhosted.org/packages/bb/c8/aefd882a14e7baeb72d82f0733de2e1a3144520f5869a7f355ec622a568c/cognite_kuiper-0.12.1-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-05 08:25:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cognitedata",
    "github_project": "kuiper",
    "github_not_found": true,
    "lcname": "cognite-kuiper"
}
        
Elapsed time: 1.81595s