HI Johann
Thank you for contacting Microsoft Open Specifications Support.
The auto-fit logic is something which is implemented by Microsoft Excel, and is not a part of the MS-XLSX File Format Open Specifications. Auto-fit involves measuring the width (or height) of the value in each cell and finding the maximum value.
Example From Stack Overflow might be what you are looking for, https://stackoverflow.com/questions/24023518/using-python-to-autofit-all-columns-of-an-excel-sheet. You just need some modification to make it auto-fit row instead.
Here is a VBA Marco that would do the entire workbook, with following Marco it will be run each time user open the workbook
Private Sub Workbook_Open()
Dim Count1 As Integer
Dim i As Integer
'Set Count1 equal to the number of worksheets in the active workbook.
Count1 = ActiveWorkbook.Worksheets.Count
For i = 1 To Count1
ActiveWorkbook.Worksheets(i).Cells.EntireColumn.AutoFit
ActiveWorkbook.Worksheets(i).Cells.EntireRow.AutoFit
Next
End Sub
I hope this helped.
HungChun Yu
Microsoft Open Specifications