metriql Looker integration
Project description
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-lookml
passing the relevantconnection
argument 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file metriql-lookml-0.3.tar.gz
.
File metadata
- Download URL: metriql-lookml-0.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbc1abffe29b6ad813f608965fa17538492b37240269968150a8fc26b4553c29 |
|
MD5 | e24890cfc01e7533a591a26f012f405a |
|
BLAKE2b-256 | 5cc1098e0cfbc8ee462a1a2636b646eedcdf4f86e8f29963ef82007527f28eef |
File details
Details for the file metriql_lookml-0.3-py3-none-any.whl
.
File metadata
- Download URL: metriql_lookml-0.3-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b06e5d700cc7844faa50449e145019a1da6cd78b888ef4a2eaed5d85552c2059 |
|
MD5 | 7476ca176ee5ad9cb6544cf2c136fd51 |
|
BLAKE2b-256 | 833390ce79d9ff0d2c8d4ec653de0a96da436122eaeeba43b56df8a23c375bf3 |