glean-parser
Parser tools for Mozilla's Glean telemetry
What it is and what it does
Glean Parser is a command-line tool and library for working with Mozilla's Glean telemetry framework. It reads telemetry configuration files in YAML format (metrics.yaml and pings.yaml) and translates them into generated code for various Glean SDK integrations—such as Kotlin—while also performing validation and linting against the Glean schema. The tool is built on common Python libraries (Jinja2 for templating, jsonschema for validation, PyYAML for config parsing) and exposes both CLI commands and a programmatic API.
It is typically used by teams instrumenting applications with Glean telemetry to validate their metric definitions before deployment and to generate the boilerplate code needed to integrate those metrics into their SDKs. The package is actively maintained and supports modern Python versions (3.9 through 3.13).
Use it for:
- Validate metrics.yaml and pings.yaml files against Glean schema before committing to a repository.
- Generate Kotlin code from telemetry configuration for Android applications using Glean.
- Lint telemetry definitions to catch configuration errors early in the development cycle.
- Integrate telemetry validation into CI/CD pipelines for Glean-instrumented projects.
- Check incoming Glean ping payloads against the ping schema for correctness.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses and validates Glean telemetry configuration files (metrics.yaml and pings.yaml), generating code for various SDK integrations and performing linting checks.
Yes, if you are building or maintaining applications that use Mozilla's Glean telemetry framework. The package is actively maintained, has low install friction, and is production-stable. However, verify the license terms first, as the metadata does not clearly record the license under which it is distributed.
Install
glean-parser on PyPI
pip
pip install glean-parseruv
uv add glean-parserpoetry
poetry add glean-parserInstalling glean-parser
Before you install
Low install friction with six common dependencies (click, diskcache, jinja2, jsonschema, platformdirs, pyyaml). Active maintenance with a release 24 days ago and last commit on 2026-08-11.
License in practice
License status is unclear—no SPDX identifier or raw license text is recorded in the package metadata. Verify the actual license terms before adopting in proprietary or restricted-license projects.
Quickstart
pip install glean-parser
glean_parser translate -o output_dir -f kotlin metrics.yaml
glean_parser check < ping.json
Requires Python 3.9 or later.
Verify before relying
- Actual license under which glean-parser is distributed (metadata shows unclear status).
- Whether the package is suitable for production telemetry pipelines outside Mozilla infrastructure.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — click, diskcache, jinja2, jsonschema, platformdirs, pyyaml |
| Maintenance | actively maintained — 24 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 293,154/month — #7,957 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: glean_parser-20.2.0-py3-none-any.whl
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
glean-sdkGlean SDK is Mozilla's telemetry collection…
unclear · top 15,000 on PyPI
opentelemetry-semantic-conventions-aiProvides OpenTelemetry semantic conventions and…
permissive · top 1,000 on PyPI
glean-api-clientA Python SDK for accessing Glean's REST API,…
unclear · top 15,000 on PyPI
azureml-telemetryCollects telemetry data from Python code by…
unclear · top 15,000 on PyPI
tree-sitter-kotlinProvides a Kotlin language grammar for…
permissive · top 5,000 on PyPI
azure-cli-telemetryCollects and uploads telemetry data for the…
permissive · top 5,000 on PyPI
azure-monitor-opentelemetryBundles OpenTelemetry SDK and Azure Monitor…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-threadingEnsures OpenTelemetry context is propagated…
permissive · top 1,000 on PyPI
openlitOpenLIT provides OpenTelemetry-native…
permissive · top 15,000 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI