{"library":"hogql-parser","type":"library","category":null,"description":"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.","language":"python","status":"active","version":"1.3.37","tags":["parser","PostHog","HogQL","SQL","AST"],"last_verified":"Fri May 22","install":[{"cmd":"pip install hogql-parser","imports":["from posthog.hogql.parser import parse_expr","from posthog.hogql.parser import parse_select","from posthog.hogql import ast"]}],"homepage":"https://posthog.com","github":"https://github.com/PostHog/posthog","docs":null,"changelog":null,"pypi":"https://pypi.org/project/hogql-parser/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":40,"avg_install_s":1.9,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/hogql-parser/compatibility"}}