epanetparser documentation master file.
The epanetparser Documentation
epanetparser is a toolkit for parsing, validating and converting EPANET water distribution network models. It works with both EPANET INP (text) format and WNTR JSON format.
The toolkit consists of a command-line utility and a library, which together allow epanetparser to be used directly and as a component of other projects.
Parsing and validation are separate steps. Parsing builds a model and reports only structural problems. Validation runs afterwards against a chosen rule set and returns a structured report, so a model can be a valid EPANET model and still be rejected by an application-specific rule set.
Validation happens in three layers — structural while the file is read, static on the parsed model, and simulation on hydraulic results — that all converge into one layered report. See Validation layers and Class Hierarchy.
The epanetparser source code is hosted on GitHub.
Introduction
Rules and Rulesets
The epanetparser library
Simulation
Agentic AI Integration