environmentaltools.common.formats

environmentaltools.common.formats(wbook, style)[source]

Apply predefined formatting styles to Excel workbook.

Provides styling presets for headers and alternating rows.

Parameters:
  • wbook (xlsxwriter.Workbook) – Excel workbook object.

  • style (str) – Style name (‘header’, ‘even’, or ‘odd’).

Returns:

Format object with specified styling.

Return type:

xlsxwriter.Format