New open-source Python library Edison parses EDIFACT messages as syntax trees
Edison is a Python library that models EDIFACT messages as a hierarchical syntax tree rather than a flat list of segments, allowing groups of segments to be defined as conditional, mandatory, or repeatable. Developers define the tree once in Python, then use it to parse, validate, or pretty-print messages, with the tree internally converted into a state machine of segment transitions. The library requires Python 3.12 or newer and is installable via pip as edison-parser.