HogQL Parser

JSON →
library 1.3.37 ·python
verified May 22, 2026

HogQL parser is an ANTLR4-based parser for HogQL and Hog, primarily developed for internal use within the PostHog analytics platform. HogQL itself is a SQL-like query language for PostHog, acting as a translation layer over ClickHouse SQL with custom enhancements for event and person data. The `hogql-parser` package provides a Python C++ extension to convert HogQL strings into Abstract Syntax Tree (AST) nodes. While available on PyPI at version 1.3.37, its development is tightly coupled with PostHog's rapid, often bi-weekly, release cadence, meaning its API can evolve with PostHog's internal needs.

total hits 10
actors 5 distinct systems
last hit 5d ago Script
GPTBot
2
Script
2
Search engines
1
Humans
1

top countries 🇫🇷 France · 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇳🇴 Norway