The pyRS (Python residual stress) analysis software was designed to address the data reduction and analysis needs of the High Intensity Diffractometer for Residual Stress Analysis (HIDRA) user community. pyRS implements frameworks for the calibration and reduction of measured 2D data into intensity versus scattering vector magnitude and subsequent single-peak-fitting analysis to facilitate texture and residual strain/stress analysis. pyRS components are accessible as standalone user interfaces for peak-fitting and stress/strain analysis or as Python scripts. The scripting interface facilitates automated data reduction and peak-fitting analysis using an autoreduction protocol. Details of the implemented functionality are discussed.