This is a OpenSCAD program that prints small enclosures for various circuit boards. It is a bit fiddley in that the vent holes need to be adjusted to match your needs and any perforations for wires or adjustment screws need to be added to the drawing of a particular side.
This example is for a small DC-DC power supply