PyHSPF contains a library of subroutines to run the Hydrological  Simulation Program in Fortran (HSPF), Version 12.2, Python extensions to  the HSPF library, and a series of classes for building input files, preprocessing data, performing simulations and calibration, and postprocessing simulation results.