Rating from Exif

I managed to make it work with sidecars but not as comfortable as using the EXIF. Maybe you can use the code from rawtherapee?