pyproffit performs photometric analysis of X-ray surface brightness profiles of galaxy clusters. The package provides functionality equivalent to and extending the capabilities of the original PROFFIT C++ code (
ascl:1608.011). The package extracts brightness profiles in circular or elliptical annuli or arbitrary sectors, fits parametric and Bayesian models using χ², C-statistic, or MCMC methods, and includes PSF deconvolution. pyproffit also reconstructs count rates and luminosities, performs non-parametric deprojection to obtain gas-density and gas-mass profiles, and computes two-dimensional model images and fluctuation power spectra.