Skip to content
Gridlens

Gridlens

github.com • November 24, 2026

Vendor-neutral Python power-quality analysis, standards checks, and reports from waveform files.

Install from PyPI and try the demo:

For COMTRADE files, install the optional extra with pip install "gridlens[comtrade]" .

The generated report is indicative for this short demo recording. For a full assessment, use an appropriately long recording and verify results against the official standard and certified instruments.

Power-quality tools are often tied to a particular instrument. GridLens aims to provide a free, scriptable layer for analyzing waveform data from multiple sources, with reusable metrics, event detection, standards checks, and reports.

Engineering guidance only. Compliance claims must be verified against the official standard text and edition, applicable system scope, and certified instruments.

Engineering guidance only. Compliance claims must be verified against the official standard text and edition, applicable system scope, and certified instruments.

Synthetic waveform generator

RMS, THD, active/reactive/apparent power, power factor

Sag, swell and interruption detection

EN 50160 and IEEE 519 voltage compliance checks

IEEE 519 current distortion (TDD)

Indian grid code limits

COMTRADE loading (optional comtrade )

HTML compliance reports

PDF report and web UI

To work on GridLens itself, install it from a clone in editable mode:

Issues and pull requests are welcome. See CONTRIBUTING.md for setup and contribution steps. Pull requests must pass CI before merging.

Extracted Entities

Platforms (1)