This is a DIN rail mounting bracket for a Raspberry Pi Model B+ and newer. I didn't like any of the one's I found on Thingiverse so I modeled this one. It's a snug fit. I printed in ABS.
I used some screws I had on-hand to mount it. You'll need 4 screws. The holes for the screws are 10mm deep IIRC. Modeled and printed it last night after a couple glasses of wine. Seems to work well. Not sure how it would hold up to frequent removal and reinstalling. A bit of stress where it flexes, but hopefully some find it useful.
EDIT: Nov 23, 2017 - Tweaked mounting hole positions a bit further back from the mount.
Media needs to be able to flex a bit. If printing in ABS might want to print at 101–102% to compensate for shrinkage. Mine printed in ABS at 100% and fits DIN rail snugly.