Skip to content

aspen-pysys

Unofficial Python API for Aspen HYSYS. Easy bidirectional data flow between Python and HYSYS.

Screenshot of distillation column optimisation

Distillation column optimisation

Why?

This is actually sick.

The “dragging windows around to see values” line is painfully real. Aspen/HYSYS has this special ability to make you feel like half the work is engineering and half the work is negotiating with the UI.

u/NoConversation8128

How?

Screenshot of example method definition

Example method definition

aspen-pysys enables users to programmatically obtain and update values on the Aspen HYSYS app through a highly abstracted Python layer. For that to happen, this API employs statically typed code to help your IDE look out for type misalignment and prevent runtime errors. There are consequently several types to represent different HYSYS data, ranging from simulation cases to heat exchangers.