PyXRF is a python-based sophisticated fluorescence analysis package for fitting and visualizing X-ray fluorescence data.
PyXRF can be installed Linux, MacOS and Windows systems. Please refer the installation instructions in the User's Manual.
The Youtube tutorial for PyXRF can be found here.
The core fitting functions are a part of the scikit-beam data analysis library for x-ray data analysis.