lookml-zenml


Namelookml-zenml JSON
Version 0.1.7 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-04-08 19:06:55
maintainerNone
docs_urlNone
authorPaul Blankley
requires_python<3.12,>=3.8.1
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LookML to ZenML

Library for translating LookML configuration into ZenML for easy onboarding to Zenlytic.

To install the package run 

```
$ pip install lookml-zenml
```

To convert a entire project run the following command from your command line interface after installing the package. Note: make sure you specify your LookML project as the first argument, and you create a directory for the ZenML output.

```
$ lookml_zenml convert ./my_lookml_project --out-directory ./my_new_zenml_project
```

This is the standard way to convert a LookML project. This will convert dashboards, views, and models into the ZenML equivalent.


---


You can also use this library to convert objects on a one-off basis. This is not as robust as converting the whole project due to loss of information for the dashboards and logic about joins in found in the explores that we add to the views. 


To convert a model run the following command. Note: if you specify `--out-directory` the library will write a yml file to that directory, otherwise it will return the converted code to stdout.

```
$ lookml_zenml model ./my_lookml_project/my_model.model.lkml --out-directory ./my_new_dir
```


To convert a view run the following command. Note: if you specify `--out-directory` the library will write a yml file to that directory, otherwise it will return the converted code to stdout.

```
$ lookml_zenml view ./my_lookml_project/my_view.view.lkml --out-directory ./my_new_dir
```

To convert a dashboard run this command. Note: for dashboards the directory is required. If you do not have the directory of lookml files, you can point to an empty directory and the conversion will run, but will put all metrics on a dashboard into the `slice_by` heading because it will be unable to determine the field type of the fields. You'll then have to correct those manually.

```
$ lookml_zenml dashboard ./my_lookml_project/my_dashboard.dashboard.lookml --directory ./my_lookml_project
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "lookml-zenml",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.12,>=3.8.1",
    "maintainer_email": null,
    "keywords": null,
    "author": "Paul Blankley",
    "author_email": "paul@zenlytic.com",
    "download_url": "https://files.pythonhosted.org/packages/18/b1/99d7ddfac7790ff5b7605a0fa79bd4ac69ba36c5c222a2c06a2944ef8a63/lookml_zenml-0.1.7.tar.gz",
    "platform": null,
    "description": "# LookML to ZenML\n\nLibrary for translating LookML configuration into ZenML for easy onboarding to Zenlytic.\n\nTo install the package run \n\n```\n$ pip install lookml-zenml\n```\n\nTo convert a entire project run the following command from your command line interface after installing the package. Note: make sure you specify your LookML project as the first argument, and you create a directory for the ZenML output.\n\n```\n$ lookml_zenml convert ./my_lookml_project --out-directory ./my_new_zenml_project\n```\n\nThis is the standard way to convert a LookML project. This will convert dashboards, views, and models into the ZenML equivalent.\n\n\n---\n\n\nYou can also use this library to convert objects on a one-off basis. This is not as robust as converting the whole project due to loss of information for the dashboards and logic about joins in found in the explores that we add to the views. \n\n\nTo convert a model run the following command. Note: if you specify `--out-directory` the library will write a yml file to that directory, otherwise it will return the converted code to stdout.\n\n```\n$ lookml_zenml model ./my_lookml_project/my_model.model.lkml --out-directory ./my_new_dir\n```\n\n\nTo convert a view run the following command. Note: if you specify `--out-directory` the library will write a yml file to that directory, otherwise it will return the converted code to stdout.\n\n```\n$ lookml_zenml view ./my_lookml_project/my_view.view.lkml --out-directory ./my_new_dir\n```\n\nTo convert a dashboard run this command. Note: for dashboards the directory is required. If you do not have the directory of lookml files, you can point to an empty directory and the conversion will run, but will put all metrics on a dashboard into the `slice_by` heading because it will be unable to determine the field type of the fields. You'll then have to correct those manually.\n\n```\n$ lookml_zenml dashboard ./my_lookml_project/my_dashboard.dashboard.lookml --directory ./my_lookml_project\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "0.1.7",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e7d462a59586b1ee3fb7fa454c0732c32a928cb09de4903b7eca10023bf9e92",
                "md5": "72826d0e566d966ebbde5ec78a6d902e",
                "sha256": "58eb35713ad9b7cc47e6d0d2ee977eab53c4a71a28e306bcdcad8be1d4d6ebd2"
            },
            "downloads": -1,
            "filename": "lookml_zenml-0.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "72826d0e566d966ebbde5ec78a6d902e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.8.1",
            "size": 10777,
            "upload_time": "2024-04-08T19:06:54",
            "upload_time_iso_8601": "2024-04-08T19:06:54.071095Z",
            "url": "https://files.pythonhosted.org/packages/3e/7d/462a59586b1ee3fb7fa454c0732c32a928cb09de4903b7eca10023bf9e92/lookml_zenml-0.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "18b199d7ddfac7790ff5b7605a0fa79bd4ac69ba36c5c222a2c06a2944ef8a63",
                "md5": "35c45dfdc64557dffb3718f4fcd06a43",
                "sha256": "9e9bcf0da23b0e8828a762619115c0f9052f8af1e4d1487b64695e4170af83b3"
            },
            "downloads": -1,
            "filename": "lookml_zenml-0.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "35c45dfdc64557dffb3718f4fcd06a43",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.8.1",
            "size": 10329,
            "upload_time": "2024-04-08T19:06:55",
            "upload_time_iso_8601": "2024-04-08T19:06:55.767461Z",
            "url": "https://files.pythonhosted.org/packages/18/b1/99d7ddfac7790ff5b7605a0fa79bd4ac69ba36c5c222a2c06a2944ef8a63/lookml_zenml-0.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-08 19:06:55",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "lookml-zenml"
}
        
Elapsed time: 0.27870s