metriql Looker Integration
Generates LookML model from your metriql datasets. The idea is to leverage metriql datasets in your Looker setup without any additional modeling.
Usage
The library is available in PyPI so you can install it via pip as follows:
pip install metriql-lookml
The library expects stdin for the metriql metadata and outputs a ZIP file to stdout. Here is an example:
curl http://metriql-server.com/api/v0/metadata | metriql-lookml --connection myproject > metriql.zip
You can use --file argument instead of reading the metadata from stdin as an alternative.
The command outputs a zip file to stdout by default, if you pass --out myfile.zip argument, it will write to the specified file instead.
How does it work?
-
Create a connection to metriql from Looker using its Trino interface.
-
Run
metriql-lookmlpassing the relevantconnectionargument for metriql.
You need to enable JDBC in your metriql server to be able to use metriql's Trino interface.
Build from source
Requires pipenv and python >=3.7
# From root folder
# Install
pipenv install --dev
# Run
pipenv run metriql2lookml
Release files for metriql-lookml 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| metriql-lookml-0.3.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| metriql_lookml-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / metriql-lookml-0.3.tar.gz
| Download URL | metriql-lookml-0.3.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbc1abffe29b6ad813f608965fa17538492b37240269968150a8fc26b4553c29
|
|
BLAKE2b-256 checksum How to use checksums |
5cc1098e0cfbc8ee462a1a2636b646eedcdf4f86e8f29963ef82007527f28eef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / metriql_lookml-0.3-py3-none-any.whl
| Download URL | metriql_lookml-0.3-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b06e5d700cc7844faa50449e145019a1da6cd78b888ef4a2eaed5d85552c2059
|
|
BLAKE2b-256 checksum How to use checksums |
833390ce79d9ff0d2c8d4ec653de0a96da436122eaeeba43b56df8a23c375bf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|