Reference · R6
Python API
The same deck format drives the GUI, the CLI, and the Python module, so scripted runs reproduce GUI results exactly.
import fsap
deck = fsap.load("my_network.fsap")
res = deck.solve(mode="steady")
print(res.node["OUT"].P, res.branch["b1"].mdot)
Build decks programmatically, sweep inputs in a loop, and pipe results into NumPy or pandas for analysis.