openpyxl.writer.excel module

class openpyxl.writer.excel.ExcelWriter(workbook, archive)[source]

Bases: object

Write a workbook object to an Excel file.

save()[source]

Write data into the archive.

write_data()[source]
write_worksheet(ws)[source]
openpyxl.writer.excel.save_workbook(workbook, filename)[source]

Save the given workbook on the filesystem under the name filename.

Parameters:
  • workbook (openpyxl.workbook.Workbook) – the workbook to save

  • filename (string) – the path to which save the workbook

Return type:

bool