lkml icon indicating copy to clipboard operation
lkml copied to clipboard

A speedy LookML parser & serializer implemented in pure Python.

Results 12 lkml issues
Sort by recently updated
recently updated
newest added

[dump](https://github.com/joshtemple/lkml/blob/3d629172bbc97a93f1d5f5af0cf4f219752a1ca8/lkml/__init__.py#L56) function mutates input dict by removing all "name" fields in the dict. Looks like it is caused by a `.pop` call on [this line](https://github.com/joshtemple/lkml/blob/3d629172bbc97a93f1d5f5af0cf4f219752a1ca8/lkml/simple.py#L312).

Many of the docstrings in lkml are outdated, especially in `simple.DictParser`.

documentation

For a dimension definition: ``` { "name": "field_name", "sql": "${TABLE}.field_name ;;" } ``` When the lookml is generated, another `;;` is appended. I'm seeing two options (there's probably more): -...

It could be useful to have a line width option that, when supplied to the serializer, adds line breaks where needed to keep the maximum line width within a certain...

enhancement

For ease of use in Python, `lkml` should convert values that are `yes` or `no` strings into `True` and `False` boolean values.

enhancement

in this example model.lkml file: ``` connection: "my_connection" constant: my_constant { value: "my_value" } constant: other_constant { value: "other_value" } view: view_name { sql_table_name: my_schema.table_name ;; dimension: dimension_name { type:...

bug

when there is a single semi-colon (`;`) in the file, `lkml` goes into infinite loop. In `lexer.py`, `Lexer.scan()`, around line 78, is peeking ahead to look for double semi-columns (`;;`)....

This should close https://github.com/joshtemple/lkml/issues/88. ``` > lkml --help usage: lkml [-h] [-v] [--json | --lookml | -w] file A blazing fast LookML parser, implemented in pure Python. When invoked from...

Thanks for lkml, it would be great to have the option in the command line to output the parsed LookML in LookML format (in addition to JSON). Even better if...

Hi! First off thanks for all the work that went into this library, it has exactly what I was looking for! I'm creating a class which adds descriptions to dimensions...