To position a Raspberry Pi slightly above a DIN rail, fully printed clamps are a bit wobbly. I therefore used a metal clamp by M5Stack, https://rpishop.cz/din/3309-drzak-na-listu-din.html, and designed a printed holder. M3 or M4x10 screws with nylock nuts are fine for attaching the holder to the clamp. RPi accepts M2.5 screws, it is sufficient to cut them into the plastic.
FreeCAD source included.
The author hasn't provided the model origin yet.