Surface roughness measurement is an integral part of the characterization of microtextured surfaces. Multiple established software packages offer the calculation of roughness parameters according to ISO 25178. However, these packages lack a specific set of features, which we hope to address in this work. Firstly, they often lack or have limited capabilities for automated and batch analysis, making it hard to integrate into other applications. Secondly, they are often proprietary and therefore restrict access to some potential users. Lastly, they lack some capabilities when it comes to the analysis of periodic microtextured surfaces. Namely, common parameters such as the peak-to-valley depth, spatial period and homogeneity cannot be calculated automatically. This work aims to address these challenges by introducing a novel Python library, Surfalize, which intends to fill in the gaps regarding this functionality. The functionality is described and the algorithms are validated against established software packages or manual measurements.