Skip to main content

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

lookml-2.0.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lookml-2.0.0-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

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

Hashes for lookml-2.0.0.tar.gz
Algorithm Hash digest
SHA256 fb2e6e1e1863ebf4f7da40f37e190d66367a14f12e64a9a2955fc5fbaa89f29c
MD5 93bccc05d0c5011b1686d3848d0a97c9
BLAKE2b-256 e252f4ee38070eae918a0c00cee7b375e4fd6c1b400e4e65a14149ce51f5ff30

See more details on using hashes here.

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

Hashes for lookml-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 869dbedec6cd392f64dd135db3f2403cc3c08172b9463a6d2dd735903a7a14a1
MD5 b059fb66562919b7804b43fe3d8831f4
BLAKE2b-256 02ff772f96a9a719f27fc58b40229e84cdbe1e3d564e27d584b75075514719ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page