A pythonic api for programatically manipulating LookML
Project description
pyLookML allows you to fetch, parse and program lookml very easily. It is an object oriented metaprogramming interface built on top of the AWESOME lkml parsing library which you can check out here: https://github.com/joshtemple/lkml. But extends it by adding convenience to it's json structure and more advanced integrations and object oriented behaviors. Check out the full documentation for pyLookml project here: https://lookml.readthedocs.io/en/latest/
In the meantime here are some very basic examples for getting started:
get started fast:
pip install lookml
Connect to a lookml github project:
import lookml
proj = lookml.Project(
repo= "llooker/russ_sandbox",
access_token="your_github_access_token",
)
viewFile = proj.getFile('01_order_items.view.lkml')
orderItems = viewFile.views.order_items
print(orderItems.id)
Pure lookml generation:
import lookml
#create a new view
order_items = lookml.View('order_items')
# add a couple fields
order_items + 'id' + 'value'
# add a sum measure
order_itmems.addSum('id')
# order_items.view.lkml will be written in working directory
order_items.write()
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lookml-2.0.0.tar.gz.
File metadata
- Download URL: lookml-2.0.0.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb2e6e1e1863ebf4f7da40f37e190d66367a14f12e64a9a2955fc5fbaa89f29c
|
|
| MD5 |
93bccc05d0c5011b1686d3848d0a97c9
|
|
| BLAKE2b-256 |
e252f4ee38070eae918a0c00cee7b375e4fd6c1b400e4e65a14149ce51f5ff30
|
File details
Details for the file lookml-2.0.0-py3-none-any.whl.
File metadata
- Download URL: lookml-2.0.0-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
869dbedec6cd392f64dd135db3f2403cc3c08172b9463a6d2dd735903a7a14a1
|
|
| MD5 |
b059fb66562919b7804b43fe3d8831f4
|
|
| BLAKE2b-256 |
02ff772f96a9a719f27fc58b40229e84cdbe1e3d564e27d584b75075514719ab
|