rivet creator

Hello,
I'm looking for a script that would create and apply rivets/bolts to an object.
May be spinners for amount per face, type, size.
thanks