libxlsxwriter
The Format object

The Format object represents an the formatting properties that can be applied to a cell including: fonts, colors, patterns, borders, alignment and number formatting.

See format.h for full details of the functionality.