skillfed

glean-parser

Parser tools for Mozilla's Glean telemetry

glean-parser v20.2.0 293.2K downloads/30d#7,957 on PyPI14
License unclear Active released

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-parser

uv

uv add glean-parser

poetry

poetry add glean-parser

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

glean telemetry parsermetrics.yaml validationpings.yaml code generationglean sdk integrationtelemetry schema lintingmozilla glean toolsmetrics configuration parser
telemetrycode-generationschema-validation

More Quality Assurance packages

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

ruff

Ruff is a Python linter and code formatter…

permissive · top 1,000 on PyPI

pexpect

Pexpect spawns and controls interactive console…

permissive · top 1,000 on PyPI

black

Black reformats Python source code to a…

permissive · top 1,000 on PyPI

pytest-xdist

pytest-xdist distributes pytest tests across…

permissive · top 1,000 on PyPI

cfn-lint

Validates AWS CloudFormation templates in YAML…

permissive · top 1,000 on PyPI

glean-sdk

Glean SDK is Mozilla's telemetry collection…

unclear · top 15,000 on PyPI

opentelemetry-semantic-conventions-ai

Provides OpenTelemetry semantic conventions and…

permissive · top 1,000 on PyPI

glean-api-client

A Python SDK for accessing Glean's REST API,…

unclear · top 15,000 on PyPI

azureml-telemetry

Collects telemetry data from Python code by…

unclear · top 15,000 on PyPI

tree-sitter-kotlin

Provides a Kotlin language grammar for…

permissive · top 5,000 on PyPI

azure-cli-telemetry

Collects and uploads telemetry data for the…

permissive · top 5,000 on PyPI

azure-monitor-opentelemetry

Bundles OpenTelemetry SDK and Azure Monitor…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-threading

Ensures OpenTelemetry context is propagated…

permissive · top 1,000 on PyPI

openlit

OpenLIT provides OpenTelemetry-native…

permissive · top 15,000 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI