Create Empty from external source file

I would like to start from a blank blend file, and be able to:

  • Link external libraries (groups)
  • create empties from a preformatted csv or xml file (containing X, Y, Z, rotations, name and “attached Group” names - taken from the previously linked groups)
  • attach the “attached group” to each one of them
    I am convinced that all this is pretty easy to code in Python, but with my extremely modest level it may take a huge amount of time!
    If anyone can help me/point some useful links or scripts, it would be greatly appreciated!
    Thanks and happy blending!