Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
When you share a workbook, you see an option labeled Keep change history for N days as shown in the following screenshot. You can update the number of days for preserving history using Aspose.Cells for Python via .NET with WorksheetCollection.revision_logs.days_preserving_history property.

The following sample code creates an empty workbook, then shares it and updates the days preserving history for revision logs to 7 days, which is normally 30 days. Please see the output Excel file generated by the code for reference.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.