Dear Hind Benzidi , the file that you have shared is the same as we use for 3D materials. Can you please tell what are the changes required in the file to use it for 2D materials.
The qe2boltz.py file is same for 3D and 2D materials in normal cases. In case, if 2D material shows no symmetry, then we need to make some changes in qe2boltz.py in order to use it to calculate the transport properties.