In the British military a 'housewife' is a small container (often a bit of pipe, corked at both ends) containing needles (threaded with white and black), a couple of shirt buttons, safety pins, possibly a pencil stub.

The housewives from the Napoleonic Wars, which are often covered in scrimshaw, are highly prized.

Regards

Chas