lkml
A speedy LookML parser implemented in pure Python.
Decision gist · record as of 2026-08-14
Yes. lkml is a stable, well-tested, dependency-free parser for a specific and narrow task (LookML serialization). It has no known vulnerabilities, permissive licensing, and low install friction. Dormant maintenance is acceptable for a mature, focused tool. Install it if you need to parse or generate LookML programmatically.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction—pure Python with no runtime dependencies.
- Dormant maintenance (last release 2025-01-31, 560 days ago), but the package is marked Production/Stable and has not been archived.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package with minimal restrictions, provided you include the license notice.
last release 2025-01-31 (560 days) · last repo commit 2025-01-31 · 186 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,309,583 downloads/mo, #4,076 on PyPI
Alternatives
Verify before relying
pip install lkml
import lkml
# Parse LookML string to Python dict
model_dict = lkml.load('view: my_view { dimension: id { type: number } }')
# Serialize Python dict back to LookML string
lookml_str = lkml.dump(model_dict)- Whether the parser handles all LookML syntax variations in active use beyond the 160K lines tested on GitHub.
- Performance characteristics on very large or deeply nested LookML structures.
- Python version support beyond 3.7 (requires_python is unspecified in the fact sheet).
What it is and what it does
lkml is a pure-Python LookML parser and serializer for Looker configuration files. It reads LookML text into Python dictionaries or JSON and writes Python objects back out as LookML syntax. The package has no external dependencies and is designed for speed—typical view or model files parse in under 10 milliseconds (excluding I/O). It is tested against over 160K lines of real LookML from public repositories.
You would use lkml when you need to programmatically read, transform, or generate Looker model and view definitions. Common scenarios include migrating Looker configurations, validating LookML syntax, generating models from templates, or integrating Looker definitions into a larger data pipeline or CI/CD workflow.
Use it for
- Validate or lint LookML files by parsing them and checking structure or naming conventions.
- Generate LookML model and view definitions programmatically from Python data structures or templates.
- Migrate or transform Looker configurations by reading, modifying, and rewriting LookML files.
- Integrate Looker metadata into documentation or data catalog systems by parsing model definitions.
- Build CI/CD checks that verify LookML syntax or consistency before deployment.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
lkml is a stable, well-tested, dependency-free parser for a specific and narrow task (LookML serialization). It has no known vulnerabilities, permissive licensing, and low install friction. Dormant maintenance is acceptable for a mature, focused tool. Install it if you need to parse or generate LookML programmatically.
Install
lkml on PyPI
Before you install
Low install friction—pure Python with no runtime dependencies. Dormant maintenance (last release 2025-01-31, 560 days ago), but the package is marked Production/Stable and has not been archived.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package with minimal restrictions, provided you include the license notice.
Quickstart
pip install lkml
import lkml
# Parse LookML string to Python dict
model_dict = lkml.load('view: my_view { dimension: id { type: number } }')
# Serialize Python dict back to LookML string
lookml_str = lkml.dump(model_dict)
Verify before relying
- Whether the parser handles all LookML syntax variations in active use beyond the 160K lines tested on GitHub.
- Performance characteristics on very large or deeply nested LookML structures.
- Python version support beyond 3.7 (requires_python is unspecified in the fact sheet).
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 560 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,309,583 / month, #4,076 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.7Topic :: Software Development |
Evidence: lkml-1.3.7-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “lookml parser python”
- lkmlParses LookML strings into Python objects or JSON and serializes…
- dparseParses Python dependency files (requirements.txt, conda.yml, tox.ini,…
- pyleriPyleri is a left-right parser generator that lets you define a…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also looker-sdk · sexpdata · rtoml · rapidyaml · tomlkit · serpent · xsdata · pymzml · tomli · tomli-w