SPFlow: An Easy and Extensible Library for Sum-Product Networks SPFlow is an open-source Python library providing routines for Sum-Product Networks (SPNs). Installation pip install spflow Documentation Examples and library documentation are available online: https://spflow.github.io/SPFlow/.