GW DSL Parser

raw JSON →
0.1.49.1 verified Mon Apr 27 auth: no python

Converts Graphic-Walker workflow DSL into executable SQL. Current version 0.1.49.1, rapid pre-1.0 releases.

pip install gw-dsl-parser
error ModuleNotFoundError: No module named 'gw_dsl_parser'
cause Installation failed or wrong package name used.
fix
Ensure you installed 'gw-dsl-parser' (with hyphens, not underscores).
error gw_dsl_parser.exceptions.ParseError: Invalid DSL format
cause DSL JSON string does not conform to expected schema.
fix
Check the JSON structure against Graphic-Walker DSL documentation.
breaking Input DSL JSON structure must match Graphic-Walker's exact schema – minor schema changes can break parsing.
fix Validate DSL format against Graphic-Walker docs before parsing.
gotcha The library does not validate SQL in the source; invalid SQL in DSL causes runtime errors.
fix Pre-validate SQL content if needed.

Parse a Graphic-Walker DSL JSON string into an SQL query.

from gw_dsl_parser import parse

dsl_text = '''{
  "workflow": {
    "source": "SELECT * FROM table",
    "transforms": [{"type": "filter", "expr": "col > 10"}]
  }
}'''

sql = parse(dsl_text)
print(sql)