Check out this handy MicroUSB extension cable, which will make it easy for you to enclose a device that has a B type (micro USB host) port. Great if you need to extend the USB port for your Raspberry Pi, Arduino, Feather or really anything development board.
This Micro-B male/female extension cable features a male USB Micro-B plug on one end, and a bulkhead mountable Micro-B female receptacle on the other. The jack half has two mounting 'ears' with 4-40 screws installed, 18mm apart. The ears are flexible so the holes don't have to be drilled very precisely. The screws can be put on from the back for 'reverse' mounting if the box thickness is a problem. The entire unit is about 12" long from tip to tip (with approx 10" cabling between connectors).
Rated for high-speed USB 2.0 use.