Created without knowledge of parsers or the language its written in, this parser has only one goal: be faster than lkml.
Assuming you have Zig installed, build the zig executable:
zig build-exe main.zig -O ReleaseFastUse it inside of Python:
import json
import subprocess
view_as_json = subprocess.check_output(["./main", "customer.view.lkml"]).decode('utf-8')
view_as_dict = json.loads(view_as_json)- Testing
- Edge case handling
- Parametrization
- Advanced features
- Ability to handle files other than view files