Import Geometries and Transform them programmatically

Good afternoon,
I would need to import a set of geometries (let’s assume *.stl files) and, for each of them, I’d like to perform a specific transformation (let’s say translation and rotation only). FYI total number of files to be imported is about 2000.

Is there a way to control Paraview writing an ASCII Paraview input file to perform this information all in once? So for instance a file like the following one to be read by paraview (assume TXi, TYi, TZi, RXi, RYi, RZi to be translations along X, Y, Z and rotations around X, Y and Z of geometry of file i respectively):

import file1.stl
import filei.stl
import fileN.stl

In the case that there is no paraview input file format that would allow this task in this way, what would be the best way to solve this problem (one for all, python)?

Thank you in advance for your help!